Numpy Array Count Unique Values Pandas Groupby