numpy.unique(arr, return_index=False, return_inverse=False, return_counts=False, axis=None)
# welcome to softhunt.net
import numpy as np
duplicates = np.array([2,3,3,4,5,5,1,5,4,6,7,5,1,5,3,5,1,3])
# GET UNIQUE VALUES
ans = np.unique(duplicates)
print(ans)
#As of NumPy 1.13, one can simply choose the axis for selection of unique values in any N-dim array. To get unique rows, one can do:
import numpy as np
unique_rows = np.unique(original_array, axis=0)
np.unique([1.2, 1.20, 1.200, 1.2000])
#output
#array([1.2])