[Numpy-discussion] np.unique for one bi-dimensional array

Giuseppe Amatulli giuseppe.amatulli@gmail....
Tue Jul 24 17:09:13 CDT 2012


would like to identify unique pairs of numbers in two arrays o in one
bi-dimensional array, and count the observation


and obtain

I solved with tow loops but off course there will be a fast solution
Any idea?
what about using np.unique for one bi-dimensional array?

In bash I usually unique command

thanks in advance

Giuseppe Amatulli
Web: www.spatial-ecology.net

More information about the NumPy-Discussion mailing list