Dataframe backends¶
The shared dataframe package includes a Polars backend and supports eager and lazy dataframes. The built-in Engine uses this backend for dataframe operations.
Dataframe backends shared by runtime components.
DataFrameBackend
¶
Bases: Protocol
Operations supported by a dataframe backend.
same_data
¶
same_data(left: object, right: object, columns: Sequence[str], *, sort_by: Sequence[str] = ()) -> bool
PolarsBackend
¶
Polars implementation of the dataframe backend contract.
snapshot
¶
Copy an input without changing its dataframe interface.
collect_pair
¶
Collect related lazy frames together so they can share upstream work.
row_count
¶
Return the row count without materializing all columns of a lazy frame.
same_keys
¶
Compare observation identities without assuming physical row order.
same_data
¶
same_data(left: object, right: object, columns: Sequence[str], *, sort_by: Sequence[str] = ()) -> bool
Compare selected rows and values, optionally in key order.
validate_types
¶
Check declared logical column types against the returned schema.