Create Numpy Array From Pandas Dataframe Group By Columns