import scipy
row1 = [91, 90, 51]
row2 = [150, 200, 155]
row3 = [109, 198, 172]
data = [row1, row2, row3]
chi2_contingency(data)
scipy.stats.chi2_contingency(data)
Chi Square Test of Independence in Python