microsoft / microsoft/qlib

fail to update the data

Open
#126 1 comment 0 reactions 1 assignee View on GitHub

@zhupr is already working on this.

Since Dec 16, 2020.

bug
Dominant language
Python
Stars
48.7k
Forks
7.7k
PR merge metrics
No merged PRs in 30d

Description

🐛 Bug Description

I want to try to update the data but fail

To Reproduce

Steps to reproduce the behavior:

1.python scripts/dump_bin.py dump_update --csv_path ~/.qlib/csv_data/cn_data --qlib_dir ~/.qlib/qlib_data/my_data --include_fields date,open,close,high,low,volume
2.it can not work and raise an error. I trackback the error and change the code in dump_bin.py line 439
if df: -> if not df.empty
and failed again
3.I traceback next error, the filter in line 418 can not work, so i add a line in line 439
if not df.empty:
df['self.date_field_name']= df['self.date_field_name'].map(pd.Timestamp)
it raise another error again, the error is 'NaT is not in list'

Could you tell me how to update the data

Environment

pandas==1.2.0rc0
pyqlib==0.6.0.dev0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.