我有从 1992 年到 2016 年的一维月度数据。我想说的是,从 1992 年到 2016 年的所有 1 月值的平均值,以隔离季节性变化。我的 for 循环做对了吗?
test_mean = []
for months in range(lsds_detrend_mnths.size):
mean = np.mean(lsds_detrend_mnths[months::months+1])
test_mean.append(mean)
我是否正确使用了数组切片?
或者为了获取所有年份每个月的平均值,我是否要执行此循环?