You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using pg.ttest with two set of observations, the error is not explicit when the second set of observations is not valid.
pingouin.ttest(x = [] , y = [1, 2, 3] ) returns AssertionError: x must have more than one element. pingouin.ttest(x = [1, 2, 3] , y = [] ) returns UnboundLocalError: local variable 'dof' referenced before assignment
The UnboundLocalError can be unclear for the user, maybe it would be suitable to use an AssertionError as well.
Thanks,
The text was updated successfully, but these errors were encountered:
* Flake8
* Explicit error when y is an empty list in pg.ttest
#222
* Add keyword arguments in homoscedasticity function
#218
* Bugfix rm_anova and mixed_anova changed the dtypes of categorical columns + added observed=True to all groupby
#224
* Update version number in init and setup
* Use np.isclose for test_pearson == 1
#195
* Coverage for try..except scipy fallback
* Fix set_option for pandas 1.4
* Upgraded dependencies for seaborn and statsmodels
* Added Jarque-Bera test in pg.normality
#216
* Coverage scipy import error
* Use pd.concat instead of frame.append to avoid FutureWarning
* Remove add_categories(inplace=True) to avoid FutureWarning
* GH Discussions instead of Gitter
* Minor doc fix
Hello,
When using pg.ttest with two set of observations, the error is not explicit when the second set of observations is not valid.
pingouin.ttest(x = [] , y = [1, 2, 3] )
returns AssertionError: x must have more than one element.pingouin.ttest(x = [1, 2, 3] , y = [] )
returns UnboundLocalError: local variable 'dof' referenced before assignmentThe UnboundLocalError can be unclear for the user, maybe it would be suitable to use an AssertionError as well.
Thanks,
The text was updated successfully, but these errors were encountered: