panda gropu oleh

df1.groupby(["Name", "City"]).size().reset_index(name='count')
Condemned Cowfish