We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
import numpy as np import pandas as pd s = pd.Series([1, 2, pd.NA], dtype='category')
Out[3]: 0 1 1 2 2 NaN dtype: category Categories (2, int64): [1, 2]
pd.NA
np.nan
provide a “missing” indicator that can be used consistently across data types
Out[3]: 0 1 1 2 2 <NA> dtype: category Categories (2, int64): [1, 2]
pd.show_versions()
pandas : 1.2.0.dev0+482.g4291973e5 numpy : 1.19.2 pytz : 2020.1 dateutil : 2.8.1 pip : 20.1.1 setuptools : 49.6.0 Cython : None pytest : None hypothesis : None sphinx : None blosc : None feather : None xlsxwriter : None lxml.etree : None html5lib : None pymysql : None psycopg2 : None jinja2 : None IPython : 7.18.1 pandas_datareader: None bs4 : None bottleneck : None fsspec : None fastparquet : None gcsfs : None matplotlib : None numexpr : None odfpy : None openpyxl : None pandas_gbq : None pyarrow : None pytables : None pyxlsb : None s3fs : None scipy : None sqlalchemy : None tables : None tabulate : None xarray : None xlrd : None xlwt : None numba : None
The text was updated successfully, but these errors were encountered:
Thanks for the report!
This is actually the expected behavior, not a bug. We currently don't plan to change this (see discussion in #35162)
Sorry, something went wrong.
Thanks for the report. As explained due to the outcome of #35162, this seems like the expected behavior so closing.
No branches or pull requests
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
pd.NA
is inputted into the Series, but it is changed tonp.nan
.provide a “missing” indicator that can be used consistently across data types
, the CategoricalDtype should support pd.NAExpected Output
Output of
pd.show_versions()
pandas : 1.2.0.dev0+482.g4291973e5
numpy : 1.19.2
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 49.6.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : 7.18.1
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
The text was updated successfully, but these errors were encountered: