pandas.crosstab — pandas 1.3.5 documentation
pandas.pydata.org › api › pandaspandas.crosstab. ¶. Compute a simple cross tabulation of two (or more) factors. By default computes a frequency table of the factors unless an array of values and an aggregation function are passed. Values to group by in the rows. Values to group by in the columns. Array of values to aggregate according to the factors.