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