return total number of unique values in a numpy array code example
Example: np array value count
unique_elements, counts_elements = np.unique(a, return_counts=True)
unique_elements, counts_elements = np.unique(a, return_counts=True)