-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
P-highPriority: highPriority: highacceptedReady for implementationReady for implementationbugSomething isn't workingSomething isn't workingpythonRelated 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({
"g": [0, 1],
})
df.group_by("g").agg(foo=pl.lit(pl.Series([42, 2, 3])))
Log output
shape: (2, 2)
+-----+-----+
| g | foo |
| --- | --- |
| i64 | i64 |
+===========+
| 1 | 42 |
|-----+-----|
| 0 | 42 |
+-----+-----+
Issue description
Values 2 and 3 are silently ignored.
Expected behavior
An error probably.
Installed versions
Replace this line with the output of pl.show_versions(). Leave the backticks in place.
lmocsi
Metadata
Metadata
Assignees
Labels
P-highPriority: highPriority: highacceptedReady for implementationReady for implementationbugSomething isn't workingSomething isn't workingpythonRelated to Python PolarsRelated to Python Polars