You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Thanks @jbrockmendel, @phofl, that works great, but the typing is broken in VSCode, I get:
Cannot access member "contains" for type "ExtensionArray"
Member "contains" is unknownPylance[reportGeneralTypeIssues](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportGeneralTypeIssues)
(function) contains: Unknown
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
https://stackoverflow.com/questions/55832639/dataframe-filter-a-column-if-it-is-in-an-interval-data-type
Question about pandas
Top voted SO answer gives:
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:Related: #21998
The text was updated successfully, but these errors were encountered: