import numpy as np
arr = np.array([1, 2, 2, 3, 3, 3])
unique_values = np.unique(arr)
print(unique_values)
import numpy as np
arr = np.array([1, 2, 2, 3, 3, 3])
unique_values = np.array(list(set(arr)))
print(unique_values)
import numpy as np
arr = np.array([1, 2, 2, 3, 3, 3])
unique_values, unique_index = np.unique(arr, return_index=True)
print(unique_values)
print(unique_index)