-
-
Notifications
You must be signed in to change notification settings - Fork 145
Closed
Labels
Description
Feature Type
-
Adding new functionality to pandas
-
Changing existing functionality in pandas
-
Removing existing functionality in pandas
Problem Description
I have a chunk of code where I create a series of Nulls -
pd.Series(
index=myKeys,
data=pd.NA,
name="my_name"
)
I am having type-checking issues
error: No overload variant of "Series" matches argument types "Index[Any]", "NAType", "str" [call-overload]
I believe it may be because pd.NA is not a valid scalar
_typing.py line 121
PandasScalar = Union["Period", "Timestamp", "Timedelta", "Interval"]
Feature Description
PandasScalar = Union["Period", "Timestamp", "Timedelta", "Interval", "NAType"]
Alternative Solutions
# type: ignore
Or maybe I need to open an enhancement request to pandas-stubs library instead? please advise if so.
Additional Context
No response