Pandas DataFrame CrosStab
pd.crosstab(index = df['column1'], columns = df['column2'])
Anil Özkan
pd.crosstab(index = df['column1'], columns = df['column2'])