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
pd.isna(obj) and obj.isna() are generally interchangeable, but pd.Index caches .isna in a _isnan cache_readonly. If we want to maintain that interchangeability, we'd need to invalidate that cache.
My inclination is that it isn't worth futzing around with, but someone who uses use_inf_as_na=True might care more.
Expected Behavior
assert (pd.isna(idx) == idx.isna()).all()
Installed Versions
Replace this line with the output of pd.show_versions()
The text was updated successfully, but these errors were encountered:
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the master branch of pandas.
Reproducible Example
Issue Description
pd.isna(obj) and obj.isna() are generally interchangeable, but pd.Index caches .isna in a _isnan cache_readonly. If we want to maintain that interchangeability, we'd need to invalidate that cache.
My inclination is that it isn't worth futzing around with, but someone who uses use_inf_as_na=True might care more.
Expected Behavior
Installed Versions
Replace this line with the output of pd.show_versions()
The text was updated successfully, but these errors were encountered: