Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull requests Fixes #55
Changes:
As described in the issue, line 361 in core.py was comparing a <class 'numpy.float64'> with a <class 'pandas.core.series.Series'>, which was causing an error.
Simply casting a float to both variables ensures that the comparison is made between equal types and fixes the issue without breaking the reports.html() function mentioned in the issue.
Description by Korbit AI
What change is being made?
Convert minimum and maximum return and benchmark values to floats in
plot_timeseries()
withincore.py
to fix error inreports.full()
.Why are these changes being made?
The error was caused by incompatible data types used for y-axis limit calculations; converting these values to floats ensures compatibility and accuracy in plotting. This change addresses the issue without affecting related functionalities, providing a simple and effective solution.