YKhmelnitskiy / intro-data-capstone-musclehub

0 stars 0 forks source link

Easier to interpret if you assign each output to a variable #5

Open driskerr opened 6 years ago

driskerr commented 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,pval,dof,expected = chi2_contingency(contingency)