Answers for "get unique values of np array"

3

python unique array of array numpy

>>> import numpy as np
>>> x = np.array([[1, 1], [2,3], [3,4]])
>>> np.unique(x)
array([1, 2, 3, 4])
Posted by: Guest on April-29-2021

Code answers related to "get unique values of np array"

Python Answers by Framework

Browse Popular Code Answers by Language