Which function is used to find the unique elements of an array in NumPy?
Correct answer
A. np.unique()
18 views
A. np.unique()
18 views
The np.unique() function returns the unique elements of an array, sorted in ascending order. It is useful for identifying unique values in datasets and performing operations based on unique elements.
Not sure why the answer is A? Ask here and get an explanation.