[How to Solve]AttributeError: module ‘scipy’ has no attribute ‘stats’

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.

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *