AttributeError Traceback (most recent call last)
Cell In[89], line 7
5 #define the data values
6 data =[[100,70,30],[140, 60,20]]
—-> 7 stat, p, dof, expected = scipy.stats.chi2_contigency(data)
AttributeError: module ‘scipy.stats’ has no attribute ‘chi2_contigency’
I have tried to import scipy lib, but is not working, I have tried below code, it still gives error
NameError Traceback (most recent call last)
Cell In[90], line 7
5 #define the data values
6 data =[[100,70,30],[140, 60,20]]
—-> 7 stat, p, dof, expected = chi2_contigency(data)
NameError: name ‘chi2_contigency’ is not defined
Shubhangee Kale is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.