I have a groupby dataframe that looks like this:
id month day #trans 0 0 8 1 9 1 0 8 2 5 2 0 8 3 10 3 0 8