Import scipy
directly, and then call pv = scipy.stats.chi2_contingency([x1,x2])[1]
when an error is reported.
Change it to import scipy.stats
.
[How to Solve]AttributeError: module ‘scipy’ has no attribute ‘stats’
Leave a reply
Import scipy
directly, and then call pv = scipy.stats.chi2_contingency([x1,x2])[1]
when an error is reported.
Change it to import scipy.stats
.