colin-g
10/18/2017 - 12:26 PM

[Pandas] Frequency count based on 2 columns

pd.crosstab(df.a, df.b)

df.groupby([“a”, “b”]).size()