Numpy, Data Cleaning.
np.array([1, 2, 3, 100, 101, 102]) threshold = np.percentile(data, 95) # Get 95th percentile cleaned_data = data[data <= threshold] # Remove outliers above threshold Section 6- Removing Duplicates: data = np.array([1, 2, 3, 2, 4, 5, 1]) unique_values = np.unique(data) # Get unique values Conclusion