-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
acceptedReady for implementationReady for implementationbreaking pythonChange that breaks backwards compatibility for the Python packageChange that breaks backwards compatibility for the Python packagebugSomething isn't workingSomething isn't workingpythonRelated to Python PolarsRelated to Python Polars
Milestone
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, 4, 5, 6, 7] })
df.select(
search_sorted = pl.col.a.search_sorted([1, 2]), # returns [0, 1]
index_of = pl.col.a.index_of([1, 2]) # throws error
)
Log output
Issue description
I think it is strange that search_sorted
and index_of
show different behavior.
Expected behavior
In my mind, either one should be like the other.
Installed versions
Replace this line with the output of pl.show_versions(). Leave the backticks in place.
Metadata
Metadata
Assignees
Labels
acceptedReady for implementationReady for implementationbreaking pythonChange that breaks backwards compatibility for the Python packageChange that breaks backwards compatibility for the Python packagebugSomething isn't workingSomething isn't workingpythonRelated to Python PolarsRelated to Python Polars