Files

9 lines
743 B
Markdown
Raw Permalink Normal View History

2026-06-15 15:26:18 +02:00
# Cross-tabulation
2026-06-16 13:12:17 +02:00
Cross-tabulation (crosstab) counts the frequency of combinations of values across two or more categorical variables. `pd.crosstab()` produces a table of frequencies or proportions. It is used to examine relationships between categorical variables, such as how customer segments differ across product categories.
Visit the following resources to learn more:
- [@official@pandas.crosstab](https://pandas.pydata.org/docs/reference/api/pandas.crosstab.html)
- [@article@The Power of Crosstab Function in Pandas](https://medium.com/geekculture/the-power-of-crosstab-function-in-pandas-for-data-analysis-and-visualization-6c085c269fcd)
- [@video@Python Pandas Tutorial 13. Crosstab](https://www.youtube.com/watch?v=I_kUj-MfYys)