Description
If you have None
in a series, it will not be considered equal to None
(even in the same series).
A = pd.Series([None]*3)
A == A
gives
0 False
1 False
2 False
dtype: bool
but, of course
A.values == A.values
gives
array([ True, True, True])
I can't find any reference to this behaviour in the documentation and looks quite unnatural.
Output of pd.show_versions()
Here the output of pd.show_versions()
pandas: 0.22.0
pytest: None
pip: 9.0.1
setuptools: 38.5.2
Cython: None
numpy: 1.14.2
scipy: 1.0.0
pyarrow: None
xarray: None
IPython: 6.2.1
sphinx: None
patsy: None
dateutil: 2.7.0
pytz: 2018.3
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.2.0
openpyxl: None
xlrd: 1.1.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None