【发布时间】:2019-10-25 00:54:38
【问题描述】:
给定一个这样的系列
Date
2005-01-01 128
2005-01-02 72
2005-01-03 67
2005-01-04 61
2005-01-05 33
Name: Data_Value, dtype: int64
几年来,我如何将所有 1 月 1 日、所有 1 月 2 日等组合在一起?
我实际上是在尝试找到几年中一年中每一天的最大值,所以它不必是 groupby。如果有更简单的方法来做到这一点,那就太好了。
【问题讨论】:
标签: python pandas datetime group-by pandas-groupby