Make Numpy Array From Pandas Dataframe Group By Count In Pandas