Write a Python Program to Find and Print the Unique Items in an Array. The unique function in the Numpy module returns a unique array of items. This example uses that function to return a distinct NumPy array of items.
import numpy as np
orarr = np.array([10, 20, 10, 30, 40, 30, 70, 11, 19, 40])
print("Original Array = ", orarr)
uniquearr = np.unique(orarr)
print("Unique Array Items = ", uniquearr)

Also Read