Solve the problem of attributeerror: module ‘SciPy’ has no attribute ‘Stats’

Direct import SciPy, then call PV = scipy.stats.chi2_ Continuity ([x1, X2]) [1] reported an error.
Change to import scipy.stats That’s it.

Read More: