将两个策略组合在一起报错,如何解决?
由huasan123创建,最终由small_q 被浏览 28 用户
我将股票双均线策略及可视化策略-小市值选股合在一起,报错,请问如何解决?
KeyError Traceback (most recent call last) <ipython-input-23-1605f36c192a> in <module> ----> 1 m=M.multi_strategy_analysis.v3( 2 raw_perf_1=DataSource('f2a32208dbc04dfb98e0d4c849652e92T'), 3 raw_perf_2=DataSource('8df6f1b69fa3498c940dc318e1dd91b1T'), 4 raw_perfs_list='', 5 weights_list='0.5,0.5'
KeyError: "None of [Index(['returns', 'benchmark_period_return'], dtype='object')] are in the [columns]"
https://bigquant.com/experimentshare/cf5cb028cc4f4af9a1d3917c73f54a5a
\