-
-
Notifications
You must be signed in to change notification settings - Fork 19k
Closed
Labels
Needs TriageIssue that has not been reviewed by a pandas team memberIssue that has not been reviewed by a pandas team memberUsage Question
Description
Research
-
I have searched the [pandas] tag on StackOverflow for similar questions.
-
I have asked my usage related question on StackOverflow.
Link to question on StackOverflow
Question about pandas
Top voted SO answer gives:
data.loc[(data.A>=interval.left) & (data.A<interval.right)]
But this doesn't account for interval.closed
.
Obviously that snippet could be expanded but check, but I feel like this should be supported out of the box?
IntervalIndex
feels like it's close, but this restriction makes it a no-go for my case:
intervals that are closed on the same side.
Related: #21998
Metadata
Metadata
Assignees
Labels
Needs TriageIssue that has not been reviewed by a pandas team memberIssue that has not been reviewed by a pandas team memberUsage Question