I have 1D monthly data ranging from 1992 - 2016. I want to take say, the means of all the January values from 1992 - 2016 in order to isolate the seasonal variation. Is my for loop doing the right thing?
test_mean = []
for months in range(lsds_detrend_mnths.size):
mean = np.mean(lsds_detrend_mnths[months::months+1])
test_mean.append(mean)
Am I using the array slicing properly?
Or in order to take the average of every month for all years, do I do this for loop?