AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Meta
row of dataframe decreased after ".add_technical_indicator(config.INDICATORS)" in FinRL_China_A_Share_Market.py
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 751
- PR merge metrics
- No merged PRs in 30d
Description
FinRL_China_A_Share_Market.py worked perfectly when trying ticket_list = CSI_300_TICKER. However, when I was trying to use all shares in China Main Board,the number of row of the dataframe decreased after "ts_processor.add_technical_indicator(config.INDICATORS)".
It was 5678553 rows x 9 columns after ts_processor.clean_data(), and it decreased to 22071 rows x 18 columns after ts_processor.add_technical_indicator(config.INDICATORS). After then, it sayed as below:
len(train.tic.unique()): 0
train.tic.unique(): []
train.head(): Empty DataFrame
Columns: [tic, date, index, unnamed: 0, open, high, low, close, volume, day, macd, boll_ub, boll_lb, rsi_30, cci_30, dx_30, close_30_sma, close_60_sma]
Index: []
train.shape: (0, 18)
Stock Dimension: 0, State Space: 1
and:
len(train.tic.unique()): 0
train.tic.unique(): []
train.head(): Empty DataFrame
Columns: [tic, date, index, unnamed: 0, open, high, low, close, volume, day, macd, boll_ub, boll_lb, rsi_30, cci_30, dx_30, close_30_sma, close_60_sma]
Index: []
train.shape: (0, 18)
Stock Dimension: 0, State Space: 1
pandas had raised KeyError:0
How to fix it ?
By the way, it seems that there is no "finrl_meta.data_processors.processor_tusharepro" in the folder, are there any diffenrences between it and "finrl_meta.data_processors.tushare"?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.