diff --git a/src/run_modules/pre_processing.py b/src/run_modules/pre_processing.py index 5731b7a6291b146681e976aa40fcb3d87a464c3b..aa80a4b82c720172c60a5808a04fe82e5e9e543b 100644 --- a/src/run_modules/pre_processing.py +++ b/src/run_modules/pre_processing.py @@ -111,7 +111,10 @@ class PreProcessing(RunEnvironment): df_descr = df_nometa.iloc[:-2].astype('float32').describe( percentiles=[.05, .1, .25, .5, .75, .9, .95]).astype('int32') df_descr = pd.concat([df_nometa.loc[['# Samples']], df_descr]).T - df_descr.rename(columns={"# Samples": "sum"}, inplace=True) + df_descr.rename(columns={"# Samples": "no. samples", "count": "no. stations"}, inplace=True) + df_descr_colnames = list(df_descr.columns) + df_descr_colnames = [df_descr_colnames[1]] + [df_descr_colnames[0]] + df_descr_colnames[2:] + df_descr = df_descr[df_descr_colnames] column_format = self.create_column_format_for_tex(df_descr) df_descr.to_latex(os.path.join(path, "station_describe_short.tex"), na_rep='---', column_format=column_format)