Skip to content
Advertisement

Tag: jupyter

How to replace pandas plot xticks with days?

I’ve got a pandas hist plot like shown below. As you can see the xticks are currently set to 0-6 (Sunday – Saturday). I’d like to replace the tick label to the actual days so the days are showing instead of numbers. 0 – Sunday 1 – Monday 2 – Tuesday 3 – Wednesday . . I believe there’s a

What does np.fft.fftfreq actually do?

I have a monthly time series and I am taking the discrete fourier transform of it. However I am confused as to how numpy converts the time domain into frequency domain? I am using np.fft.fftfreq and my time array is is 708 indices long and each measurement of the data is computed every month. This is the output frequency using

Advertisement