diff --git a/src/utils/parser.py b/src/utils/parser.py index f522e318f..ad369c70a 100644 --- a/src/utils/parser.py +++ b/src/utils/parser.py @@ -147,7 +147,7 @@ def to_median(a): return None elif isinstance(a, pd.core.series.Series): with warnings.catch_warnings(): - warnings.simplefilter("ignore", message="Mean of empty slice") + warnings.simplefilter("ignore", category=RuntimeWarning) return a.median() else: raise Exception("to_median: unsupported type.")