使用chinaa_stock_filter后报错
由mymdeep创建,最终由mymdeep 被浏览 33 用户
数据经过
chinaa_stock_filter
过滤后,运行时会有报错:
KeyError Traceback (most recent call last) <ipython-input-1-5e5c4f20305c> in <module> 446 # output_left_data=False 447 # ) --> 448 m27 = M.dl_convert_to_bin.v2( 449 input_data=m37.data, 450 features=m38.data_1,
/var/app/enabled/biglearning/module2/common/modulemanagerv2.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.modulemanagerv2.BigQuantModuleVersion.call()
/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker.module_invoke()
/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._invoke_with_cache()
/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._invoke_with_cache()
/var/app/enabled/biglearning/module2/common/moduleinvoker.cpython-38-x86_64-linux-gnu.so in biglearning.module2.common.moduleinvoker._module_run()
/var/app/enabled/biglearning/module2/modules/dl_convert_to_bin/v2/init.cpython-38-x86_64-linux-gnu.so in biglearning.module2.modules.dl_convert_to_bin.v2.init.BigQuantModule.run()
/var/app/enabled/biglearning/module2/modules/dl_convert_to_bin/v2/init.cpython-38-x86_64-linux-gnu.so in data_generator()
/usr/local/python3/lib/python3.8/site-packages/pandas/core/frame.py in getitem(self, key) 3028 if is_iterator(key): 3029 key = list(key) -> 3030 indexer = self.loc._get_listlike_indexer(key, axis=1, raise_missing=True)[1] 3031 3032 # take() does not accept boolean indexers
/usr/local/python3/lib/python3.8/site-packages/pandas/core/indexing.py in _get_listlike_indexer(self, key, axis, raise_missing) 1264 keyarr, indexer, new_indexer = ax._reindex_non_unique(keyarr) 1265 -> 1266 self._validate_read_indexer(keyarr, indexer, axis, raise_missing=raise_missing) 1267 return keyarr, indexer 1268
/usr/local/python3/lib/python3.8/site-packages/pandas/core/indexing.py in _validate_read_indexer(self, key, indexer, axis, raise_missing) 1306 if missing == len(indexer): 1307 axis_name = self.obj._get_axis_name(axis) -> 1308 raise KeyError(f"None of [{key}] are in the [{axis_name}]") 1309 1310 ax = self.obj._get_axis(axis)
KeyError: "None of [Index(['return_5/return_20', 'rank_amount_5', 'avg_turn_10' \n 'market_cap_float_0<280000000000', 'pe_ttm_0>0', 'pb_lf_0' \n 'sum(mf_net_pct_main_0>0.12,30)>11', 'fs_roa_ttm_0>5' \n 'fs_cash_ratio_0', 'close_0>ts_max(close_0,56)' \n 'ta_sma_10_0/ta_sma_30_0', 'ta_sar_0' \n 'swing_volatility_10_0/swing_volatility_60_0', 'ta_cci_14_0' \n 'rank_return_3', 'mf_net_amount_0>mf_net_amount_1' \n 'mf_net_amount_xl_0>mean(mf_net_amount_xl_0, 30)', 'cond4' \n '(close_0-close_30)/close_30>1.25', '(close_0-close_5)/close_5>1.16' \n 'list_days_0>365', 'ta_bbands_middleband_28_0', 'cond28'] \n dtype='object')] are in the [columns]"
\