-
-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ttest() TypeError: object of type 'int' has no len() #227
Comments
same issue here
|
it's looks like issue with @benpla if you want quickfix for this problem, install |
@Pofozaur : Your suggestion did the trick! First remove packages: conda remove pingouin, numpy, pandas Which Versions are installable? conda search --override-channels --channel conda-forge numpy
conda search --override-channels --channel conda-forge pandas On conda-forge channel the suggested versions are available. conda install -c conda-forge numpy=1.21.5
conda install -c conda-forge pandas=1.3.5
conda install -c conda-forge pingouin Run python with test().... and voila: it works! |
Hi, Thanks for opening the issue. The error is related to the latest release of Pandas (1.4.0), which leads to an error here: pingouin/pingouin/parametric.py Line 309 in dcfdc82
A simple fix is to replace the above line with: stats = pd.DataFrame(stats, columns=col_order, index=['T-test']) # works with pandas 1.4.0 I'll implement this in the next release of Pingouin. In the meantime, a quick fix is to revert to pandas 1.3.5: pip install pandas==1.3.5 Thanks, |
The first sample code fails with:
Code:
Every try for ttest farls with the same wessage.
Avova works as expected.
I enter code as simple as possible, but I can not understand the error message.
I uninstalled pingouin using
conda remove pingouin
.Then installation with pip. Same result.
I installed an older version (
conda install -c conda-forge/label/cf202003 pingouin
).Same result.
What can be the reason for this?
Here is my output:
The text was updated successfully, but these errors were encountered: