Python Train Test Split On Dataframe Group By Max