MCPcopy
hub / github.com/marimo-team/marimo / to_polars

Method to_polars

marimo/_sql/engines/duckdb.py:87–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 sql_output_format = self.sql_output_format()
86
87 def to_polars() -> pl.DataFrame:
88 import polars as pl
89
90 # Use the Arrow PyCapsule interface (pl.DataFrame(relation))
91 # instead of relation.pl() so that pyarrow is not required.
92 return pl.DataFrame(relation)
93
94 def to_lazy_polars() -> pl.LazyFrame:
95 # `lazy=True` requires DuckDB >= 1.4 and pyarrow. Fall back to the

Callers 6

executeMethod · 0.80
_Function · 0.80
_Function · 0.80
_Function · 0.80
_Function · 0.80

Calls

no outgoing calls

Tested by 1