【发布时间】:2019-12-11 20:13:40
【问题描述】:
求 1968-1672 年 1 月份每个位置的平均值
观察数据以清晰理解: https://github.com/prataplyf/Wind-DateTime/blob/master/wind_data.csv
year = wind.index.year.unique()
year
month = wind[(wind.index.year==wind.index.year.unique())]
month.mean()```
get 'mean()' of each location only Jan data
Output format
RPT VAL ...... ...... ..... ...... .... ....BEL MAL
1961-1
1962-1
1963-1
.
.
.
.
.
1672-1
【问题讨论】:
标签: pandas-groupby