对TimeGrouper调用出错 最近学习遇到这个AttributeError: module ‘pandas’ has no attribute ‘TimeGrouper’ 可能是书的版本老了吧,我恁是用不了pd.TimeGrouper实现对值的相同重新采样 于是就强行导入了一波 from pandas.core import resample 然后利用resample.TimeGrouper( )调用就行了 当然也有各位大佬的文件改法,我就懒得改了,直接照着导入,能用就行。