Skip to content

Glossary: Regression

pd.crosstab

Also written: crosstab

A pandas function that counts rows for each combination of two columns. It is used to check that there is data for every combination before fitting an interaction, and to build a confusion table of predicted against actual outcomes.

Where the book teaches it

Related terms

InteractionConfusion table