🐛 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:
- import numpy at head
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
🐛 Bug Description
qlib/qlib/contrib/backtest/position.py /
NameError: name 'np' is not defined
To Reproduce
Steps to reproduce the behavior:
Expected Behavior
Screenshot
Environment
Note: User could run
cd scripts && python collect_info.py allunder project directory to get system informationand paste them here directly.
Windows,Linux,MacOS):Additional Notes