-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REGR: to_csv(na_rep) truncates values #31447
New issue
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
Comments
to_csv(na_rep)
Thanks for the report! Yes, the |
to_csv(na_rep)
Hi,
correctly yields
while
results in this:
Output of
|
Taking a look at this now. |
I think https://github.com/pandas-dev/pandas/pull/30146/files#diff-8f51ce8697bdff680b3f71b196c582ee is the bug. That will truncate the values to the length of |
Code Sample
Problem description
Despite (or due to?) #29975 and #30146, using
na_rep
still makesto_csv()
truncate values. In this case integers.Expected Output
',0\r\n0,8\r\n1,9\r\n2,10\r\n3,11\r\n'
Output of
pd.show_versions()
pandas : 1.0.0rc0
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 41.2.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 : 2.10.3
IPython : 7.11.1
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : 3.1.2
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pytest : None
s3fs : None
scipy : 1.4.1
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
numba : None
The text was updated successfully, but these errors were encountered: