Skip to content

Glossary: pandas Beyond the Basics

crosstab

Also written: pd.crosstab

A shortcut that counts how many rows have each combination of two values, given as two Series. `normalize=` turns the counts into shares.

Where the book teaches it

Related terms

Pivot tablepivot