We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 main branch of pandas.
import pandas as pd import numpy as np import pyarrow as pa np_arr = pd.Series([0, np.nan], dtype=np.float64) / 0 pd_arr = pd.Series([0, np.nan], dtype=pd.Float64Dtype()) / 0 pa_arr = pd.Series([0, np.nan], dtype=pd.ArrowDtype(pa.float64())) / 0
>>> np_arr 0 NaN 1 NaN dtype: float64 >>> pd.isna(np_arr) 0 True 1 True dtype: bool >>> pd_arr 0 NaN 1 <NA> dtype: Float64 >>> pd.isna(pd_arr) 0 False 1 True dtype: bool >>> pa_arr 0 NaN 1 <NA> dtype: double[pyarrow] >>> pd.isna(pa_arr) 0 False 1 True dtype: bool
In the NumPy case, the NaN value resulting from the 0 / 0 division is caught by pd.isna but not in the pandas / pyarrow case
pd.isna
I think all should be True @jorisvandenbossche
run on main
The text was updated successfully, but these errors were encountered:
There are several issues about this. We talked about it at the sprint
Sorry, something went wrong.
agree with @jbrockmendel
this is a duplicate of a bunch of issues, so closing here
@phofl can you link to some of the issues you know about so readers can follow the discussion? I am not sure where to track this myself
#53887 and a bunch of issues mentioned there
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Pandas version checks
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 main branch of pandas.
Reproducible Example
Issue Description
In the NumPy case, the NaN value resulting from the 0 / 0 division is caught by
pd.isna
but not in the pandas / pyarrow caseExpected Behavior
I think all should be True @jorisvandenbossche
Installed Versions
run on main
The text was updated successfully, but these errors were encountered: