Q:

group by count dataframe

df.groupby(['col1','col2']).size()
4
df.groupby(['col1', 'col2']).size().reset_index(name='counts')
3

New to Communities?

Join the community