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
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
Note: Env bellow is not the latest, but I also tested with 1.3.3 and behavior remains the same
I have confirmed this bug exists on the master branch of pandas.
Reproducible Example
importpandasaspddf=pd.DataFrame()
df['a'] = [1,2,3,4,5,6,7,8,None,None]
print(df['a'])
>Outputs:
01.012.023.034.045.056.067.078.08NaN9NaNName: a, dtype: float64
Issue Description
Pandas is replacing None with NaN these are no the same, this is horrible and will cause bugs
Expected Behavior
I'd expected values I assign to an element or column in a pandas data frame to either:
Get assigned
Raise and error if they can't be assigned
Installed Versions
pd.show_versions()
INSTALLED VERSIONS
commit : 67a3d42
python : 3.8.10.final.0
python-bits : 64
OS : Linux
OS-release : 5.11.0-34-generic
Version : #36~20.04.1-Ubuntu SMP Fri Aug 27 08:06:32 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
Note: Env bellow is not the latest, but I also tested with 1.3.3 and behavior remains the same
I have confirmed this bug exists on the master branch of pandas.
Reproducible Example
Issue Description
Pandas is replacing
None
withNaN
these are no the same, this is horrible and will cause bugsExpected Behavior
I'd expected values I assign to an element or column in a pandas data frame to either:
Installed Versions
INSTALLED VERSIONS
commit : 67a3d42
python : 3.8.10.final.0
python-bits : 64
OS : Linux
OS-release : 5.11.0-34-generic
Version : #36~20.04.1-Ubuntu SMP Fri Aug 27 08:06:32 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_GB.UTF-8
LOCALE : en_GB.UTF-8
pandas : 1.1.4
numpy : 1.21.2
pytz : 2019.3
dateutil : 2.7.3
pip : 20.0.2
setuptools : 57.4.0
Cython : 0.29.21
pytest : 6.1.2
hypothesis : None
sphinx : 4.1.2
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.1
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.18.1
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : 0.8.7
fastparquet : None
gcsfs : None
matplotlib : 3.3.3
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 4.0.0
pytables : None
pyxlsb : None
s3fs : None
scipy : 1.7.0
sqlalchemy : 1.4.23
tables : None
tabulate : 0.8.7
xarray : None
xlrd : 1.2.0
xlwt : None
numba : 0.53.1
The text was updated successfully, but these errors were encountered: