-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DataFrame.to_csv with empty dataframe probleme quoting #15891
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
Is this meant to be something?
|
cc @gfyoung |
this actually looks ok to me. |
How should I get an empy csv with 2 rows ? |
pd.DataFrame([None, None]).to_csv(None, header= False, index= False) |
|
Thank, this way solves my problem. |
so the missing values are getting filled by the
|
I think this is a bug, so marked. @parisni welcome to have a PR to fix! (code is actually not bad for writing csvs....) |
This looks fixed on master. Could use a test
|
Code Sample, a copy-pastable example if possible
Problem description
I cannot get an empty csv. There is allways quote for the first row
Expected Output
I should get a csv with an empty row.
Output of
pd.show_versions()
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.12.0
scipy: 0.18.1
statsmodels: 0.6.1
xarray: None
IPython: 5.1.0
sphinx: 1.5.2
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.10
blosc: None
bottleneck: 1.2.0
tables: 3.3.0
numexpr: 2.6.1
matplotlib: 2.0.0
openpyxl: 2.4.1
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.7.2
bs4: 4.5.3
html5lib: None
httplib2: 0.10.3
apiclient: 1.6.2
sqlalchemy: 1.1.5
pymysql: None
psycopg2: None
jinja2: 2.9.4
boto: 2.45.0
pandas_datareader: None
The text was updated successfully, but these errors were encountered: