Open OzzyXu opened 6 months ago
Would you like to create a PR to fix this and be one of the contributors to qlib.
@SunsetWolf Sure. Then I will double-check whether my fix will cause any issues, if not, then I will create a PR to fix it. And I am happy to be a contributor to Qlib and try to help with other issues.
@OzzyXu Let me know about it. I'd like to help.
🐛 Bug Description
The ticker name "NA" in the "all.txt" under
/instruments
makes theexists_qlib_data
function fail due to the string "NA" being wrongly converted to the float "nan" but not a string.To Reproduce
Steps to reproduce the behavior:
~/.qlib/qlib_data/us_data/instruments
.Run the following code:
Expected Behavior
The code should run without errors.
Screenshot
Environment
Note: User could run
cd scripts && python collect_info.py all
under project directory to get system information and paste them here directly.Windows
,Linux
,MacOS
): WindowsAdditional Notes
exists_qlib_data
underqlib\utils\__init__.py
. Refer to the page for more details.keep_default_na=False