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

earnings_dates not available #1932

Open
yunhongz opened this issue May 14, 2024 · 5 comments
Open

earnings_dates not available #1932

yunhongz opened this issue May 14, 2024 · 5 comments

Comments

@yunhongz
Copy link

Describe bug

The earnings_dates record is not available

Simple code that reproduces your problem

import yfinance as yf
msft = yf.Ticker('MSFT')
msft.earnings_dates

Debug log

image

Bad data proof

No response

yfinance version

yfinance 0.2.38

Python version

python3.10

Operating system

ubuntu

@ValueRaider
Copy link
Collaborator

ValueRaider commented May 14, 2024

Yahoo has changed table structure

                                  Event Name  Earnings Call Time  EPS Estimate  Reported EPS  Surprise(%)
0                   Q1 2024 Earnings Release   Time Not Supplied           NaN           NaN          NaN
1                      Q1 2024 Earnings Call                 TAS           NaN           NaN          NaN
2                   Q1 2024 Earnings Release   Time Not Supplied           NaN           NaN          NaN
3   at Bank of America Healthcare Conference                 TAS           NaN           NaN          NaN
4                Annual Shareholders Meeting                 TAS          1.95          1.59      -0.1846
5                   Q1 2024 Earnings Release   Time Not Supplied           NaN           NaN          NaN
6                   Q3 2023 Earnings Release  After Market Close           NaN           NaN          NaN
7                   Q4 2023 Earnings Release  After Market Close           NaN           NaN          NaN
8   at Bank of America Healthcare Conference                 TAS         -0.74           NaN          NaN
9                   Q1 2024 Earnings Release   Time Not Supplied           NaN           NaN          NaN
10               Annual Shareholders Meeting   Time Not Supplied           NaN           NaN          NaN
11                  Q4 2023 Earnings Release  After Market Close           NaN           NaN          NaN

Event name is nice addition, but losing dates a problem. Hoping for a way to get old structure.

Probably Yahoo has broken their redesign rollout, because their Find earnings for symbol search doesn't work: https://finance.yahoo.com/calendar/earnings?symbol=MSFT

@ValueRaider ValueRaider pinned this issue May 14, 2024
@hjlgood
Copy link

hjlgood commented May 15, 2024

Looks like yahoo fixed their problem. yfinance works fine now. I suggest you close this issue.

@ValueRaider
Copy link
Collaborator

I suspect it will return, I've seen this alternative table randomly rarely over last few weeks. Yahoo is up to something...

@michaelmoopenn
Copy link

For some tickers, it works and some others it doesn't. At this time, ENB.TO works, TSLA still gives the issue.

@yunhongz
Copy link
Author

It returned to normal, interesting!

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

4 participants