Skip to content

Commit

Permalink
Revert IR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Feb 14, 2025
1 parent ff252e0 commit f5dbc59
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/cudf_polars/cudf_polars/dsl/ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,9 +743,10 @@ def do_evaluate(
projection: tuple[str, ...] | None,
) -> DataFrame:
"""Evaluate and return a dataframe."""
pdf = pl.DataFrame._from_pydf(df)
if projection is not None:
df = df.select(projection)
df = DataFrame.from_polars(df)
pdf = pdf.select(projection)
df = DataFrame.from_polars(pdf)
assert all(
c.obj.type() == dtype
for c, dtype in zip(df.columns, schema.values(), strict=True)
Expand Down

0 comments on commit f5dbc59

Please sign in to comment.