From ed67a4a610d7d9f7c1d2e50515a5a64822953a86 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Thu, 10 Nov 2022 18:28:27 +1100 Subject: [PATCH] Make nan_policy defaults consistent Should default to 'warn' always --- yli/sig_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yli/sig_tests.py b/yli/sig_tests.py index b461cfc..fc3404c 100644 --- a/yli/sig_tests.py +++ b/yli/sig_tests.py @@ -217,7 +217,7 @@ class FTestResult: return 'F({:.0f}, {:.0f}) = {:.2f}; p {}'.format(self.dof1, self.dof2, self.statistic, fmt_p(self.pvalue, PValueStyle.RELATION)) -def anova_oneway(df, dep, ind, *, nan_policy='omit'): +def anova_oneway(df, dep, ind, *, nan_policy='warn'): """ Perform one-way ANOVA @@ -269,7 +269,7 @@ def anova_oneway(df, dep, ind, *, nan_policy='omit'): class MannWhitneyResult: """ - Result of a Mann-Whitney *U* test + Result of a Mann–Whitney *U* test See :func:`yli.mannwhitney`. """ @@ -395,7 +395,7 @@ class BrunnerMunzelResult: def mannwhitney(df, dep, ind, *, nan_policy='warn', brunnermunzel=True, use_continuity=False, alternative='two-sided', method='auto'): """ - Perform a Mann-Whitney *U* test + Perform a Mann–Whitney *U* test By default, this function performs a Brunner–Munzel test if the Mann–Whitney test is significant. If the Mann–Whitney test is significant but the Brunner–Munzel test is not, a warning is raised.