No exception raised when doing Selector
+ list
in DataFrame.drop
.
#19023
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
No response
Issue description
The validity of the expression
pl.selectors.ends_with("_b") + []
inDataFrame.drop
depends on the columns available in theDataFrame
: If exactly one column that fits the selector is available, an error is raised. Otherwise no columns are dropped. I think this is inconsistent and either[]
should be added to the columns to drop orExpected behavior
I expect all of the above examples to raise
Installed versions
The text was updated successfully, but these errors were encountered: