Elhanan Schwarts

numpy matrix count distinct

Assume there is a numpy contains the following data structure:
import numpy as np

a = np.array([[‘2′,’W’,’A’],
[‘3’, ‘R’, ‘A’],
[‘4’, ‘W’, ‘R’],
[‘2’, ‘E’, ‘R’],
[‘4’, ‘E’, ‘Y’],