[英]How to resample a time series per decades in python
How do I resample a time series per decades?如何每十年重新采样一个时间序列?
It does not like this one:它不喜欢这个:
df.resample('10Y')
The letter Y
is not the correct offset alias for year. 字母Y
不是年份的正确偏移别名 。 Try: 尝试:
df.resample('10A')
df.resample('10AS') df.resample('10AS')
To get the data from 01-01-1900从 01-01-1900 获取数据
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.