https://dataindependent.com/pandas/pa...
For all intensive purposes, you can think of Pandas Crosstab as the same things as Pandas Pivot Table.
When to use pd.crosstab(): When you are starting with non-DataFrame based data. This could be a list of lists or dictionaries.
pandas.crosstab(index=your_new_index(rows),
columns=your_pivoted_columns,
values=your_new_values)