Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

df is a Empty DataFrame #31

Closed
LHB-kk opened this issue Nov 18, 2023 · 1 comment
Closed

df is a Empty DataFrame #31

LHB-kk opened this issue Nov 18, 2023 · 1 comment

Comments

@LHB-kk
Copy link

LHB-kk commented Nov 18, 2023

您好!
我在运行train_maskable_ppo.py时,能获取到data_train,data_valid, data_test的数据
data_train = StockData(instrument=instruments,
start_time='2009-01-01',
end_time='2018-12-31')
data_valid = StockData(instrument=instruments,
start_time='2019-01-01',
end_time='2019-12-31')
data_test = StockData(instrument=instruments,
start_time='2020-01-01',
end_time='2021-12-31')
而在运行trade_decision.py时,程序运行时会调用
StockData(instrument=instruments,
start_time='2022-11-18',
end_time='2023-11-17'
)
此时获取不到数据。
请问这是什么原因呢?是还不支持获取最新的数据嘛?

@xuehongyanL
Copy link
Contributor

也许是的,选股模式下要每天更新数据。有条件的话您自己debug一下。

@xuehongyanL xuehongyanL closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants