Skip to content

Conversation

@qianyun210603
Copy link
Contributor

Description

  • provide dtype to empty series to suppress below warning
    D:\Documents\TradeResearch\qlib\qlib\data\data.py:971: FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
      return pd.Series()
    
  • fix some typo

Motivation and Context

Adapt latest pandas change and improve code quality

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

@github-actions github-actions bot added the waiting for triage Cannot auto-triage, wait for triage. label Feb 24, 2023
@qianyun210603
Copy link
Contributor Author

@you-n-g would you review please? thanks.

@Fivele-Li Fivele-Li merged commit b084c35 into microsoft:main May 5, 2023
@qianyun210603 qianyun210603 deleted the pit_minor_fix branch June 13, 2023 09:36
@you-n-g you-n-g added bug Something isn't working and removed waiting for triage Cannot auto-triage, wait for triage. labels Jun 25, 2023
gaogen123 pushed a commit to gaogen123/qlib that referenced this pull request Sep 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants