I was trying the yfinance package trying to get fianacials dataframe. Although, it worked nice getting info,history and actions, it didn't work with financials, balance_sheet and other methods even with different stocks
INPUT
import yfinance as yf
msft = yf.Ticker("MSFT")
print(msft.financials)
OUTPUT
Empty DataFrame
Columns: [Open, High, Low, Close, Adj Close, Volume]
Index: []`
The columns are also wrong. I am searching for a way to fix the problem or another solution to get data.
As I understand it,
msft.financials
can be referenced to see what kind of data the stock can get in advance. For example, whether there is an adjusted close or not and how long the data is available. You can check this withmsft.history(period='max')
.You can get the actual data as follows.