yobx.sql.polars_convert#
polars LazyFrame → ONNX converter.
Converts a polars.LazyFrame execution plan (as returned by
LazyFrame.explain()) into a self-contained ONNX model by translating
the polars logical plan into a SQL query that is then processed by
sql_to_onnx().
Supported polars operations#
Column selection (
select)Row filtering (
filter)Arithmetic binary expressions:
+,-,*,/Comparison predicates:
>,<,>=,<=,==,!=Compound predicates:
&(AND),|(OR)Aggregations via methods:
.sum(),.mean()(→ AVG),.min(),.max(),.count()Column aliases via
.alias(...)group_by/agg