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

'DataFrame' object has no attribute 'ta' #567

Closed
dkaralis opened this issue Jul 25, 2022 · 4 comments
Closed

'DataFrame' object has no attribute 'ta' #567

dkaralis opened this issue Jul 25, 2022 · 4 comments

Comments

@dkaralis
Copy link

Hello, trying to start using pandas_ta and I get this error.
I found a similar issue but the solution didn't worked for me.

Thank you

Screenshot 2022-07-25 at 06 43 11

@twopirllc
Copy link
Owner

twopirllc commented Jul 25, 2022

Hello @dkaralis,

Please fill out more details. Thanks

Also, the error you show help(pd.DataFrame().ta) does not match your code on line 5 df = pd.DataFrame(). It appears you have altered your code at line 5 after the error was generated.

Which version are you running? The lastest version is on Github. Pip is for major releases.

import pandas_ta as ta
print(ta.version)

Do you have TA Lib also installed in your environment?

$ pip list

Did you upgrade? Did the upgrade resolve the issue?

$ pip install -U git+https://github.com/twopirllc/pandas-ta

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Provide sample code.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@twopirllc
Copy link
Owner

Hello @dkaralis,

If you figured this out, please close the issue. If not, please provide more details. Also do not create a module named pandas_ta as it might get confused between it and this package.

Kind Regards,
KJ

@dkaralis
Copy link
Author

dkaralis commented Aug 5, 2022

Hello Kevin. After your last comment I renamed my file from pandas_ta.py to pand_t.py (in the screenshot it looks like testta.py, I probably changed it afterwards) and now it is working.
Thank you!

@dkaralis dkaralis closed this as completed Aug 5, 2022
@twopirllc
Copy link
Owner

@dkaralis,

Excellent! Glad it's working now for you. 😎

KJ

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

2 participants