I am a beginner, and have written the following code:
wn=np.random.normal(loc=raw_data.Quantity.mean(), scale=raw_data.Quantity.std(), size=len(training_data))
training_data['wn']=wn
training_data.wn.plot(figsize=(20,5), title="LOL")
plt.title('White Noise')
plt.ylim(0,2400)
plt.show()
It gives the following error:
AttributeError: 'numpy.ndarray' object has no attribute 'plot'
Following are the values for the White Noise:
In[140]:wn
Out[140]: array([313.12254531, 43.56086818, 298.21441411, ..., -50.96308586, 193.43057718, 242.80841993])
Can anyone please help me with this?