I am attempting to show the top three values of nc_type for each month. I tried using n_largest but that doesn\'t do it by date.
nc_type
n_largest
Original Data:
I'd include group_keys=False
group_keys=False
df.groupby('occurred_date', group_keys=False).nlargest(3) occurred_date nc_type 1.0 f 34 w 24 z 13 12.0 w 44 g 42 a 27 Name: value, dtype: int64