-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
bugSomething isn't workingSomething isn't workingneeds triageAwaiting prioritization by a maintainerAwaiting prioritization by a maintainerpythonRelated to Python PolarsRelated to Python Polars
Description
Checks
- I have checked that this issue has not already been reported.
- I have confirmed this bug exists on the latest version of Polars.
Reproducible example
import polars as pl
df = pl.DataFrame({
'a': [1, 2, 3],
})
df.select(
x = pl.col.a, # This works.
b = pl.Series([1, 2, 5, 2]).pct_change(pl.col.a.min()), # This returns a col `a` not found error.
)
Log output
ColumnNotFoundError: a
Resolved plan until failure:
---> FAILED HERE RESOLVING 'sink' <---
DF [""]; PROJECT */1 COLUMNS
Issue description
For some reason, the column a
cannot be found here.
Expected behavior
It is found.
Installed versions
Replace this line with the output of pl.show_versions(). Leave the backticks in place.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds triageAwaiting prioritization by a maintainerAwaiting prioritization by a maintainerpythonRelated to Python PolarsRelated to Python Polars