fail to update the data
@zhupr is already working on this.
Since Dec 16, 2020.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.