Python has some wonderful libraries for statistical analysis, but they might be overkill for simple tasks. The built-in statistics library might be what you want instead. Here are some things you can ...
When you specify the CHISQ option in the TABLES statement, PROC FREQ performs the following chi-square tests for each two-way table: Pearson chi-square, continuity-adjusted chi-square for 2 ×2 tables, ...