Numpy Array Number Of Rows Pandas Groupby