Make Numpy Array From Pandas Dataframe Groupby