You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed the issue by replacing line 884 of timeseries.py with:
valley = underwater.index[np.argmin(underwater)] # end of the period
Versions
Pyfolio version: 0.8.0
Python version: 3.9
Pandas version: 1.3.3
Matplotlib version: 3.4.3
The text was updated successfully, but these errors were encountered:
gcorre02
changed the title
AttributeError: 'numpy.int64' object has no attribute 'to_pydatetime' due to incorrect valley val format
AttributeError: 'numpy.int64' object has no attribute 'to_pydatetime' due to incorrect valley val type
Sep 25, 2021
Problem Description
valley is not being set to a timestamp in line 884 of timeseries.py
Please provide a minimal, self-contained, and reproducible example:
too complex to add code here, will try later and add as a follow up comment
Please provide the full traceback:
Please provide any additional information below:
Fixed the issue by replacing line 884 of timeseries.py with:
valley = underwater.index[np.argmin(underwater)] # end of the period
Versions
The text was updated successfully, but these errors were encountered: