method
Table.
resid_pearson
Returns Pearson residuals.
The Pearson residuals are calculated under a model where the rows and columns of the table are independent.
statsmodels.stats.contingency_tables.Table.marginal_probabilities
statsmodels.stats.contingency_tables.Table.standardized_resids