Python List Array Dataframe Group By Means