ranaroussi / yfinance

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

pandas data reader override function incompatible with yfinance 0.2.41 #2001

Closed tab-co closed 1 month ago

tab-co commented 1 month ago

Describe bug

latest version of yfinance breaks with pandas_datareader override(). Downgraded yfinance to 0.2.40 and it works again

Simple code that reproduces your problem

import yfinance as yf from pandas_datareader import data as pdr

yf.pdr_override()

Debug log

...

Bad data proof

No response

yfinance version

0.2.41

Python version

Python 3.12.4

Operating system

windows 11

ValueRaider commented 1 month ago

I removed it. You should be seeing this in previous versions:

>>> yf.pdr_override()
yfinance: pandas_datareader support is deprecated & semi-broken so will be removed in a future verison. Just use yfinance.
tab-co commented 1 month ago

I liked pandas because its dataframe worked well to populate an excel spreadsheet with graphs and tables. I guess I’ll have to learn how yfinance does a dataframe and support MS ExcelSent from my iPhoneOn Jul 24, 2024, at 3:12 PM, ValueRaider @.***> wrote: You should be seeing this:

yf.pdr_override() yfinance: pandas_datareader support is deprecated & semi-broken so will be removed in a future verison. Just use yfinance.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

ValueRaider commented 1 month ago

We like pandas too. PDR literally did nothing but break functionality.

joeATX commented 1 week ago

Install version 0.2.40 worked for me as well. Thank you.

tab-co commented 1 week ago

Thanks. A huge revamp for me to remove pandas.

From: joeATX @.> Sent: Monday, August 26, 2024 5:23 PM To: ranaroussi/yfinance @.> Cc: tab-co @.>; Author @.> Subject: Re: [ranaroussi/yfinance] pandas data reader override function incompatible with yfinance 0.2.41 (Issue #2001)

Install version 0.2.40 worked for me as well. Thank you.

— Reply to this email directly, view it on GitHub https://github.com/ranaroussi/yfinance/issues/2001#issuecomment-2311335864, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5MELB7A7LUV3BMSGW46EW3ZTPBHLAVCNFSM6AAAAABLNFHUZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJRGMZTKOBWGQ . You are receiving this because you authored the thread.Message ID: < @.***>