PANDAS DATAFRAME CROSSAB
pd.crosstab(index = df['column1'], columns = df['column2'])
Anil Özkan
pd.crosstab(index = df['column1'], columns = df['column2'])