ranaroussi / yfinance

Download market data from Yahoo! Finance's API
https://aroussi.com/post/python-yahoo-finance
Apache License 2.0
14.89k stars 2.44k forks source link

New version of numpy 1.26.4 incompatibility with np.bool existence #2049

Open VasLem opened 2 months ago

VasLem commented 2 months ago

Describe bug

New version of numpy incompatibility with np.bool leads to an error, when using the history module. A simple modification in the code, wherever np.bool make it np.bool_ , which is actually just one occurrence, fixes the issue. Should I make a pull request for that, or are you planning a new release that would incorporate this little fix? The specifics on the deprecation can be found starting numpy 1.24

Simple code that reproduces your problem

No need for that

Debug log

No need for that

Bad data proof

No response

yfinance version

0.2.43

Python version

3.10.14

Operating system

No response

ValueRaider commented 2 months ago

I'm planning a big update to that code but testing will take a few weeks, so you can submit a PR to dev.