Skip to content

Commit

Permalink
Typo return False as bool and not str in normality
Browse files Browse the repository at this point in the history
Closes #373
  • Loading branch information
raphaelvallat committed Nov 11, 2023
1 parent e8cafd6 commit aa29357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pingouin/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aa29357

Please sign in to comment.