I am trying to use numpy fft to plot some data from a dataframe :
plt.plot(np.fft.fft(df_valid_daily_activity.stepsDaily))
I don't understand why the plot is so steep in the beginning and then seems to stabilise? Also I get this warning :
Casting complex values to real discards the imaginary part
return array(a, dtype, copy=False, order=order)
example of the data I am trying to plot :
2 12693.0
3 18387.0
4 18360.0
5 11684.0
6 12722.0
...
273 27836.0
274 15566.0
280 7836.0
281 17787.0
284 7739.0
Name: stepsDaily, Length: 199, dtype: float64
Any ideas why ? Thanks!


Semi Log Y:
Log Scale Both:
