I have the following dataframe named ttm:
usersidid clienthostid eventSumTotal LoginDaysSum score 0 12 1 60
Reading the groupy documentarion, a found out that automatic exclusion of columns after groupby usually caused by the presence of null values in that columns excluded.
Try fill the 'null' with some value.
Like this:
df.fillna('')