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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

miss numpy package #417

Closed
zhang787jun opened this issue May 12, 2021 · 1 comment 路 Fixed by #419
Closed

miss numpy package #417

zhang787jun opened this issue May 12, 2021 · 1 comment 路 Fixed by #419
Labels
bug Something isn't working

Comments

@zhang787jun
Copy link

馃悰 Bug Description

qlib/qlib/contrib/backtest/position.py /

161        cash = pd.Series(dtype=np.float)

NameError: name 'np' is not defined

To Reproduce

Steps to reproduce the behavior:

  1. import numpy at head
import numpy as np 

Expected Behavior

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.

  • Qlib version:
  • Python version:
  • OS (Windows, Linux, MacOS):
  • Commit number (optional, please provide it if you are using the dev version):

Additional Notes

@zhang787jun zhang787jun added the bug Something isn't working label May 12, 2021
@zhang787jun zhang787jun changed the title miss miss numpy package May 12, 2021
@you-n-g
Copy link
Collaborator

you-n-g commented May 12, 2021

Hi, @zhang787jun
Thanks so much for submitting this issue.
Would you mind sending a PR to fix this issue and become one of the contributors of Qlib!

@Derek-Wds Derek-Wds mentioned this issue May 13, 2021
5 tasks
@Derek-Wds Derek-Wds linked a pull request May 13, 2021 that will close this issue
5 tasks
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 a pull request may close this issue.

2 participants