From 29820f8e61a05ed8af3590ef02fa37240438ea6d Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Thu, 30 Jun 2022 14:12:51 +0100 Subject: [PATCH] fix: don't write index column to csv file in input.pandas.dump_df. --- pyerrors/input/pandas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyerrors/input/pandas.py b/pyerrors/input/pandas.py index b54c7617..b3a2d3ef 100644 --- a/pyerrors/input/pandas.py +++ b/pyerrors/input/pandas.py @@ -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)