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

Fix issue with "from numpy import NaN as npNaN" #860

Closed
peanutsee opened this issue Dec 10, 2024 · 3 comments
Closed

Fix issue with "from numpy import NaN as npNaN" #860

peanutsee opened this issue Dec 10, 2024 · 3 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@peanutsee
Copy link

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

Do you have TA Lib also installed in your environment?
Yes

Have you tried the development version? Did it resolve the issue?
Yes

Describe the bug
Error from from numpy import NaN as npNaN in squeeze_pro.py.

To Reproduce
Run import pandas-ta as ta

Expected behavior
import pandas-ta as ta to run without errors.

@peanutsee peanutsee added the bug Something isn't working label Dec 10, 2024
@peanutsee
Copy link
Author

@twopirllc How do I contribute to the code base?

@gguan
Copy link

gguan commented Dec 11, 2024

Downgrade numpy version to 1.26.4 or manually install development version of pandas-ta

@twopirllc twopirllc removed their assignment Dec 11, 2024
@twopirllc twopirllc added the duplicate This issue or pull request already exists label Dec 11, 2024
@twopirllc
Copy link
Owner

Hello @peanutsee

The resolution provided by @gguan is correct.

Please do not open duplicate Issues. This is a common and known (see Issue #857) for those running Pandas TA v0.3.14b and trying to run Numpy 2.x. It has been addressed more than once. Please read my comments and the links I provided for more context.

Contributing is easy:

  1. Fork the repo
  2. Checkout the development branch and NOT the main branch.
  3. Make edits & check your work.
  4. Submit PR

Kind Regards,
KJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants