问答交流

代码报错

由bqoirhp1创建,最终由bqoirhp1 被浏览 1 用户

ParserException Traceback (most recent call last) Cell In[6], line 115 82 m2 = M.input_features_dai.v30( 83 input_1=m1.data, 84 mode="""表达式""", (...) 111 m_name="""m2""" 112 ) 114 # @module(position="140,300", comment="""持仓数量与打分分配仓位""") --> 115 m3 = M.score_to_position.v4( 116 input_1=m2.data, 117 score_field="""score DESC""", 118 hold_count=5, 119 position_expr="""1 AS position""", 120 total_position=1, 121 extract_data=False, 122 m_name="""m3""" 123 ) 125 # @module(position="140,430", comment="""抽取因子数据""") 126 m4 = M.extract_data_dai.v18( 127 sql=m3.data, 128 start_date="""2022-01-01""", (...) 135 m_name="""m4""" 136 ) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/modules.py:28, in call(self, **kwargs) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/moduleinvoker.py:203, in module_invoke(name, version, kwargs) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/moduleinvoker.py:169, in _module_invoke(name, version, kwargs) File /opt/pyenv/versions/3.11.8/lib/python3.11/site-packages/bigmodule/moduleinvoker.py:41, in _module_run(module, kwargs) File dist/build/score_to_position/v4/init.py:227, in v4.run() File dist/build/score_to_position/v4/init.py:105, in v4._ds_to_tables() File dist/build/score_to_position/v4/init.py:86, in v4._ds_to_table() ParserException: Parser Error: syntax error at or near "20"

{link}