Python Train Test Split On Dataframe Group By Aggregate