This issue is appearing in a local Jupyter notebook and I'm using Python 3.10
Importing scipy
and scipy.stats
is no problem.
import scipy
import scipy.stats
However, I'm trying to use the Pingouin library for data analysis and running into issues with the following code:
import pingouin as pg
pg.ttest(x,y,paired=True)
--> 201 from scipy.stats.stats import (_unequal_var_ttest_denom,
202 _equal_var_ttest_denom)
ImportError: cannot import name '_unequal_var_ttest_denom' from 'scipy.stats.stats'
(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/scipy/stats/stats.py)
Since Pingouin is SciPy dependent, it's trying to import the required modules and getting stuck on at least one. I've tried uninstalling and reinstalling SciPy and Pingouin but am unable to resolve this issue. Any advice is greatly appreciated!