-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Pandas 2.0.0 was released today. It appears something changed in Pandas that breaks yf.download. I'm using:
- Python 3.11.2
- yfinance 0.2.14
- macOS 12.6.4
yf.download works with Pandas 1.5.3:
>>> import pandas as pd
>>> import yfinance as yf
>>> pd.__version__
'1.5.3'
>>> yf.__version__
'0.2.14'
>>> yf.download('MSFT', start='2023-04-03', end='2023-04-04')
[*********************100%***********************] 1 of 1 completed
Open High Low Close Adj Close Volume
Date
2023-04-03 286.519989 288.269989 283.950012 287.230011 287.230011 24100907
yf.download fails with Pandas 2.0.0:
>>> import pandas as pd
>>> import yfinance as yf
>>> pd.__version__
'2.0.0'
>>> yf.__version__
'0.2.14'
>>> yf.download('MSFT', start='2023-04-03', end='2023-04-04')
[*********************100%***********************] 1 of 1 completed
1 Failed download:
- MSFT: No data found for this date range, symbol may be delisted
Empty DataFrame
Columns: [Open, High, Low, Close, Adj Close, Volume]
Index: []
tingiskhan, RamXX and joshwigginton
Metadata
Metadata
Assignees
Labels
No labels