I\'m doing a chi-square test on a contingency table with scipy.stats.chi2_contingency. The table was created by applying crosstab on a dataframe. Apolo
scipy.stats.chi2_contingency
crosstab