AI4Finance-Foundation / AI4Finance-Foundation/FinRL-Meta

row of dataframe decreased after ".add_technical_indicator(config.INDICATORS)" in FinRL_China_A_Share_Market.py

Aperta
#164 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
1.9k
Fork
751
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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"?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.