wondertrader / wtpy

wtpy是基于wondertrader为底层的针对python的子框架
MIT License
926 stars 259 forks source link

运行cta_fut_bt回测模块报类型错误 #100

Closed Shawn-Ecns closed 1 year ago

Shawn-Ecns commented 1 year ago

报错信息:TypeError: datetime64 type does not support sum operations

微信截图_20230406172736
jack52518 commented 1 year ago

应该是因为 profit = df_closes.groupby(df_closes['day']).sum() 这句把closetime列也求和了,已经修改成只提出需要的列再求和,再试一下看看

kk19990709 commented 1 year ago

2023年8月3日下载master分支,运行依然会遇到这个错误