From aa29357699f9b87ee5fa51704359cd1ed6e591c7 Mon Sep 17 00:00:00 2001 From: Raphael Vallat Date: Sat, 11 Nov 2023 21:49:11 +0100 Subject: [PATCH] Typo return False as bool and not str in normality Closes https://github.com/raphaelvallat/pingouin/issues/373 --- pingouin/distribution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pingouin/distribution.py b/pingouin/distribution.py index 5143c8f2..ad47fcb3 100644 --- a/pingouin/distribution.py +++ b/pingouin/distribution.py @@ -241,7 +241,7 @@ def normality(data, dv=None, group=None, method="shapiro", alpha=0.05): if tmp[dv].count() <= 3: warnings.warn(f"Group {idx} has less than 4 valid samples. Returning NaN.") st_grp = pd.DataFrame( - {"W": np.nan, "pval": np.nan, "normal": "False"}, index=[idx] + {"W": np.nan, "pval": np.nan, "normal": False}, index=[idx] ) else: st_grp = normality(tmp[dv].to_numpy(), method=method, alpha=alpha)