fix: don't write index column to csv file in input.pandas.dump_df.

This commit is contained in:
Fabian Joswig 2022-06-30 14:12:51 +01:00
parent 42a6dbddd4
commit 29820f8e61

View file

@ -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)