对自生成序列,进行按时间索引的分组操作出现报错。
原代码:df.gtoupby(df.index.date).mean()
报错情况AttributeError: 'function' object has no attribute 'groupby'尝试几种方法,未果!
你的代码 应该有个def df()检查 一下
另外,
df.gtoupby(df.index.date).mean() 应该是 df.groupby(df.index.date).mean()