mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01:00
fix: don't write index column to csv file in input.pandas.dump_df.
This commit is contained in:
parent
42a6dbddd4
commit
29820f8e61
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ def dump_df(df, fname, gz=True):
|
|||
if not fname.endswith('.csv'):
|
||||
fname += '.csv'
|
||||
|
||||
out.to_csv(fname)
|
||||
out.to_csv(fname, index=False)
|
||||
if gz is True:
|
||||
with open(fname, 'rb') as f_in, gzip.open(fname + ".gz", 'wb') as f_out:
|
||||
f_out.writelines(f_in)
|
||||
|
|
Loading…
Add table
Reference in a new issue