execute

xorq.api.execute(expr, **kwargs)

Execute an expression against its backend if one exists.

Parameters

Name Type Description Default
kwargs Any Keyword arguments {}

Examples

>>> import xorq.api as xo
>>> t = xo.examples.penguins.fetch()
>>> t.execute()

Scalar parameters can be supplied dynamically during execution.

>>> species = xo.param("string")
>>> expr = t.filter(t.species == species).order_by(t.bill_length_mm)
>>> expr.execute(limit=3, params={species: "Gentoo"})