Mar-24-2022, 07:40 PM
Hi,
I'm looking for a way to get unique couple of data on 2 columns here as shown bellow; I had to look to numpy and Pandas, duf on internet, but I still looking for a goof way: any suggestion?
Thanks
Paul
I'm looking for a way to get unique couple of data on 2 columns here as shown bellow; I had to look to numpy and Pandas, duf on internet, but I still looking for a goof way: any suggestion?
Thanks
Paul
import numpy as np A = np.array([['A', 'x'], ['C', 'y'], ['B', 'z'], ['C', 'x'], ['C', 'y'], ['Z', 'z']]) # Expected : A_unique = np.array([['A', 'x'], ['C', 'y'], ['B', 'z'], ['C', 'x'], ['Z', 'z']])