yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

Totally bad data

Open hkristof03 opened this issue 3 years ago • 4 comments

I just came across this library and performed some initial queries but what I see is a bit far from reality.

aapl = yf.Ticker("AAPL")
bs = aapl.balance_sheet

print(f"{bs.transpose()['Common Stock'][::-1][-1]:,}")

57,365,000,000.0

Checking outstanding shares are more like ~16,701,272,000-

For MSFT it is also wrong.

The cash flow statement contains "net income", which shouldn't be an element of it.

hkristof03 avatar Aug 21 '22 13:08 hkristof03

@hkristof03

What's the issue? It appears to be reporting correctly.

When display the full frame for 'bs' in your example, you get the same 57mil. The important item is the date, '2021-09-25'. Here is Apple's balance sheet from that timeframe. The 57mil in your example match Apple's official balance sheet statement for that timeframe.

or are you saying that the label should be changed to 'Shareholders’ equity'?

niceguy4 avatar Aug 21 '22 16:08 niceguy4

Yes that would be better probably, at least according to my knowledge. Never heard that Common stock and Shareholder's equity are used equivalently. The former for me indicates the number of outstanding common shares, while the latter is what is left over after the total liabilities is subtracted from total assets.

Similarly there is no net income on the cash flow statement. Free cash flow and net income are not the same.

hkristof03 avatar Aug 21 '22 16:08 hkristof03

Check out this PR, it might solve your problem: https://github.com/ranaroussi/yfinance/pull/776

ValueRaider avatar Aug 21 '22 17:08 ValueRaider

Correct financials are now available in pre-release version 0.2.0rc4.

ValueRaider avatar Dec 15 '22 16:12 ValueRaider