Is Numpy Array Faster Than Pandas Dataframe Groupby