Jump to content

yfinance empty dataframe

Hi guys, I've just started coding with yfinance so forgive me if this is a dumb mistake; I'm calling on the balance sheet from a company and it's giving me an empty dataframe. Here's my code:

 

def value():
    ticker = input('Enter a ticker symbol (as seen on yahoo finance): ')
    stock = yf.Ticker(ticker)

    stock_info = stock.info
    stock_balance = stock.balance_sheet

    print(stock_balance)


value()

Then it returns:

Empty DataFrame
Columns: [Open, High, Low, Close, Adj Close, Volume]
Index: []

 

If anybody can help, that'd be great, thanks in advance!

Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 months later...

I'm struggling with the exact same problem, didn't you find a solution yet?

 

Thanks

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×