Turn Numpy Array Into Pandas Dataframe Group By Aggregate