From c5b78cc40ac15baf89f4ca36586688cde556ab39 Mon Sep 17 00:00:00 2001 From: Felix Kleinert <f.kleinert@fz-juelich.de> Date: Wed, 9 Feb 2022 12:39:46 +0100 Subject: [PATCH] update statistics for utest --- mlair/helpers/statistics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mlair/helpers/statistics.py b/mlair/helpers/statistics.py index 6a54212a..02803225 100644 --- a/mlair/helpers/statistics.py +++ b/mlair/helpers/statistics.py @@ -275,7 +275,8 @@ def represent_p_values_as_asteriks(p_values: pd.Series, threshold_representation f"`threshold_representation' keys mus be in strictly " f"decreasing order but is: {threshold_representation.keys()}") - asteriks = pd.Series().reindex_like(p_values) + # asteriks = pd.Series().reindex_like(p_values) + asteriks = pd.DataFrame().reindex_like(p_values) for k, v in threshold_representation.items(): asteriks[p_values < k] = v return asteriks -- GitLab