Numpy Array Get Number Of Distinct Categories