-
-
Notifications
You must be signed in to change notification settings - Fork 149
Closed
Labels
ExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.IntervalInterval data typeInterval data type
Description
Describe the bug
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
To Reproduce
from pandas-dev/pandas#52616 (comment):
df = pd.DataFrame({'A': range(1, 10)})
obj = pd.Interval(1,4)
ser = pd.Series(obj, index=df.index)
arr = ser.array
arr.contains(df["A"])
Please complete the following information:
- OS: Linux
- OS Version Ubuntu 20.04.4 LTS
- python version 3.10.9
- version of type checker Pylance v2023.4.40
- version of installed
pandas-stubs
2.0.0.230412-py3-none-any
Metadata
Metadata
Assignees
Labels
ExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.IntervalInterval data typeInterval data type