diff --git a/mlair/helpers/statistics.py b/mlair/helpers/statistics.py index 6a54212ab6969d7145d54988a141c8cd89fdc837..028032253b6051b303b21cae398822a13a9a3a2b 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