From 636ce54395eddd0134caf995a186229f7f0ba8a0 Mon Sep 17 00:00:00 2001 From: leufen1 <l.leufen@fz-juelich.de> Date: Mon, 7 Dec 2020 15:19:10 +0100 Subject: [PATCH] another minor bug fixed --- mlair/run_modules/pre_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlair/run_modules/pre_processing.py b/mlair/run_modules/pre_processing.py index 4add6abb..c9e92e7d 100644 --- a/mlair/run_modules/pre_processing.py +++ b/mlair/run_modules/pre_processing.py @@ -137,7 +137,7 @@ class PreProcessing(RunEnvironment): if percentiles is None: percentiles = [.05, .1, .25, .5, .75, .9, .95] df_descr = df.iloc[:-ignore_last_lines].astype('float32').describe( - percentiles=percentiles).astype('int32') + percentiles=percentiles).astype("int32", errors="ignore") df_descr = pd.concat([df.loc[['# Samples']], df_descr]).T df_descr.rename(columns={"# Samples": "no. samples", "count": "no. stations"}, inplace=True) df_descr_colnames = list(df_descr.columns) -- GitLab