PANDAS DATAFRAME CROSSAB
pd.crosstab(index = df['column1'], columns = df['column2'])
Anil Özkan
pd.crosstab(index = df['column1'], columns = df['column2'])
pd.crosstab(index=diamonds['cut'],
columns=diamonds['color'],
values=diamonds['price'],
aggfunc=np.mean).round(0)