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

Fix Yahoo daily data format inconsistent #1517

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Fivele-Li
Copy link
Contributor

Before the closing of the day, the daily API of Yahoo returns data format that includes hours, minutes, and seconds, which is different from the closed index format. This issue needs to be fixed.

Description

1.Fix FutureWarning: Passing unit-less datetime64 dtype to .astype is deprecated and will raise in a future version. Pass 'datetime64[ns]' instead

Motivation and Context

How Has This Been Tested?

  • Pass the test by running: pytest qlib/tests/test_all_pipeline.py under upper directory of qlib.
  • If you are adding a new feature, test on your own test scripts.

Screenshots of Test Results (if appropriate):

  1. Pipeline test:
  2. Your own tests:

Types of changes

  • Fix bugs
  • Add new feature
  • Update documentation

…eprecated and will raise in a future version. Pass 'datetime64[ns]' instead
@github-actions github-actions bot added the waiting for triage Cannot auto-triage, wait for triage. label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for triage Cannot auto-triage, wait for triage.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants