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

Key not found error when I pass tail items to Renko #11

Open
praneeth1984 opened this issue Jul 25, 2020 · 0 comments
Open

Key not found error when I pass tail items to Renko #11

praneeth1984 opened this issue Jul 25, 2020 · 0 comments

Comments

@praneeth1984
Copy link

Hello,

I was getting a "Key not found error". On investigating on the source code I understood df.tail(n).loc[0] does not work. I was using this approach as I noticed a performance issue when there were too many items in panda list. Instead of sending the entire list I was sending tail of 50 items to create the Renko chart and it started breaking. I changed in my local loc[0] to iloc[0] and it worked for me.

The code which was breaking and what I did to fix
self.cdf.loc[0] = self.df.iloc[0]

Hope this helps.

Praneeth

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