问答交流

【代码报错】KeyError: "DataFrame does not contain 'open' column"Output is truncated

由bqhfzrhn创建,最终由small_q 被浏览 16 用户

KeyError: "DataFrame does not contain 'open' column"Output is truncated. View as a open in a text editor. Adjust cell output settings...

https://bigquant.com/codesharev3/fe4fb116-9952-42a2-aad4-91738ebaa77c

\

标签

数据分析Python
评论
  • 收到,已经反馈给了 交易引擎工程师
  • 两点:1)计算均线 尽量用close 2)直接使用data.history获取价格
  • 代码帮你改好了,见下:
  • https://bigquant.com/codesharev3/06964822-6bf4-4ce0-96aa-51073bbe366b
{link}