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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qs.reports.html(), ValueError: cannot convert float NaN to integer #58
Comments
I've encountered the same issue |
same here |
And how long are the backtests you guys running? Cause I've not seen any such errors but my tests are >10 years. |
Less than 1 year,
I can send you the returns for testing in case you are interested
Alon
…On Thu, Dec 31, 2020, 10:57 Onepamopa ***@***.***> wrote:
And how long are the backtests you guys running? Cause I've not seen any
such errors but my tests are >10 years.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#58 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIGPXPYQRK42PXFTNFHKU6LSXQ4HTANCNFSM4VKZFLWQ>
.
|
has anyone found a solution to this? |
Developed my own tearsheet, took one day, works like a charm
…On Mon, Jan 4, 2021, 23:49 Garrett Johnson ***@***.***> wrote:
has anyone found a solution to this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#58 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIGPXPZZANOJTVFRA7YIQ7LSYIZXJANCNFSM4VKZFLWQ>
.
|
Hi @nistrup - I can't seem to reproduce this. Can you please post the returns csv here? Thanks! |
@ranaroussi it does occur, so does the "Inf" problem as well, I had to adjust several functions and replace Inf & so forth with 0. stats.py ulcer_index:
The problem is not with _prepare_returns - I checked - it doesn't have any NaN or Inf, but they appear after some calculation (placed in a new dataframe). |
I can post the returns dataframe (as sent to quantstats), if that'll help. returns is then sent to qs.reports.html(returns=returns, . . . . . . .) |
@Onepamopa - It will help :) Please post the returns dataframe here. Thanks! |
Guys, leave me out of the correspondence please, thanks
…On Tue, Jan 5, 2021, 14:03 Ran Aroussi ***@***.***> wrote:
@Onepamopa <https://github.com/Onepamopa> - It will help :) Please post
the returns dataframe here. Thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#58 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIGPXPZX6SHREXTMIWFULJ3SYL5ZDANCNFSM4VKZFLWQ>
.
|
@ranaroussi Here's the dataframe after calling to_returns() |
@ranaroussi I'll include mine as well. This is obviously before converting to returns: |
Please upgrade to 0.0.26 by running |
I'll check tomorrow and let you know. |
for me the latest version fixed the error stated in this original issue.... still not producing a report tho: 3209 if (isinstance(converted_limit, Real)
3210 and not np.isfinite(converted_limit)):
-> 3211 raise ValueError("Axis limits cannot be NaN or Inf")
3212 return converted_limit
3213
ValueError: Axis limits cannot be NaN or Inf I'll try to debug this, could be something simple |
quantstats/quantstats/_plotting/core.py Line 89 in a76c1e3
Add |
Hi, I'm experiencing problems simply using the example from the README to make a report, ie.:
This results in
Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: