Search code examples
pythonfinance

How to get quarterly income statement with yahoo_fin


I started learning python and am currently working with yahoo_fin to look at financial data.

I can use stock_info.get_income_statement() to get the annual income statements but I was wondering if anyone knew of a way to get the quarterly income statement that you can view on yahoo's site.

Is this possible using yahoo_fin or do I need to use a different library?


Solution

  • from yahoofinancials import YahooFinancials
    data = YahooFinancials('MSFT')
    income_stat = data.get_financial_stmts(frequency = 'quarterly', statement_type = 
    'income')
    

    After getting data, you might need to process it for better presentation