I want to set the outlier values as 'NaN' values. Here is the code I am using right now. Can someone explain me ?
import numpy as np, matplotlib.pyplot as plt
data = np.random.rand(1000)+5.0
plt.plot(data)
plt.xlabel('observation number')
plt.ylabel('recorded value')
plt.show()