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

copy should not modify data #124

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

neuraldevelopment
Copy link

Hi there,

thanks for your wonderful lib, really like it.

When using your lib together with other frameworks I run into the problem that a copy call in the other framework caused the column names to be renamed to lower case, which the other framework can't handle. I scanned your code and found that the copy function has this "feature" in it.

As I think a copy should not modify the data compared to the original one I introduced a lowerCase-Flag in wrap and retype causing copy to leave the column names as they are. With that modification I was able to run your StockDataFrame also with other frameworks like backtesting.py

Best regards,
Neutro2

@neuraldevelopment
Copy link
Author

... and sorry for the two commits, I forgot to delete a print type message and had already pushed my repo...

@jealous
Copy link
Owner

jealous commented Oct 4, 2022

Looks like there are some format issues in the code.
I change the column name to lower case because the calculation of some indicators requires specific columns like 'close' or 'high', 'low'. I am not sure if they still working when you have columns like 'Close' or 'High'.

@neuraldevelopment
Copy link
Author

neuraldevelopment commented Oct 4, 2022 via email

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

Successfully merging this pull request may close these issues.

2 participants