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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem in define "b" variable in __init__ file line 219 #27

Open
mahdishemshadi opened this issue Jul 7, 2021 · 0 comments
Open

problem in define "b" variable in __init__ file line 219 #27

mahdishemshadi opened this issue Jul 7, 2021 · 0 comments

Comments

@mahdishemshadi
Copy link

Hi
I tried to change the length of "hist " variable in "plot_sup_res_learn" method in init.py file, the default was '2019-10-07' and I changed it to '2019-10-27'. I got an error 'ValueError: cannot convert float NaN to integer'.
when I debug the code I found this line in init.py file line 219 that causes the error. b = hist.Close.iloc[-10] - m * 0 - mn.
some times the value of 'b' becomes 0 and it causes other problems in next lines.
In the following of the line 219, this expression was commented: + height * 0.2
and height was calculated in line 214 and it was also commented

My question is what if I uncomment the line 214 and this expression in line 219 " + height * 0.2"?
How does it affect on the next calculation?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant