Open
Description
In [1]: import pandas as pd; from io import StringIO; import numpy as np
In [2]: pd.__version__
Out[2]: '2.1.4'
In [3]: ser = pd.Series(pd.array([1, pd.NA], dtype="Float64"))
In [4]: ser.eq(np.nan, fill_value=0.0). # 2.1.4
Out[4]:
0 False
1 False
dtype: boolean
In [4]: ser.eq(np.nan, fill_value=0.0). # 2.2
Out[4]:
0 False
1 <NA>
dtype: boolean
I would expect fill_value
to replace NA with 0.0 before comparing with np.nan
as described in the docs