Open driskerr opened 6 years ago
https://github.com/jewgeney/intro-data-capstone-musclehub/blob/163399689a37b3ba7ecfc7b955f8ea20bfe90f0d/MuscleHub%20capstone%20project/musclehub.py#L323-L324
You did this in the first contingency table, so I know you can do it. But the funciton chi2_contingency returns four variables - they can be easier to work with if you assign each one to a variable.
chi2_contingency
chi2,pval,dof,expected = chi2_contingency(contingency)
https://github.com/jewgeney/intro-data-capstone-musclehub/blob/163399689a37b3ba7ecfc7b955f8ea20bfe90f0d/MuscleHub%20capstone%20project/musclehub.py#L323-L324
You did this in the first contingency table, so I know you can do it. But the funciton
chi2_contingency
returns four variables - they can be easier to work with if you assign each one to a variable.