You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few functions stop working a few days ago such as get_balance_sheet or get_income_statement, but others till working like si.get_stats_valuation, si.get_quote_table or si.get_stats.
Empty DataFrame
Columns: []
Index: []
Index([], dtype='object')
503
5541
30
Traceback (most recent call last):
File "/Users/marioveloso/PycharmProjects/watchlist/fundamentals.py", line 134, in
income = si.get_income_statement(stock)
File "/Users/marioveloso/anaconda3/envs/watchlist/lib/python3.8/site-packages/yahoo_fin/stock_info.py", line 422, in get_income_statement
temp = json_info["incomeStatementHistory"]["incomeStatementHistory"]
TypeError: string indices must be integers
The text was updated successfully, but these errors were encountered:
File "C:\OS_OOP_NK\Python\PY3.11_202212\Lib\site-packages\yahoo_fin\stock_info.py", line 1015, in get_company_info
json_info = json_info["assetProfile"]
~~~~~~~~~^^^^^^^^^^^^^^^^
TypeError: string indices must be integers, not 'str'
A few functions stop working a few days ago such as get_balance_sheet or get_income_statement, but others till working like si.get_stats_valuation, si.get_quote_table or si.get_stats.
bs = si.get_balance_sheet(stock)
print(bs)
print(bs.index)
income = si.get_income_statement(stock)
print("Income statement_ ")
print(income)
Empty DataFrame
Columns: []
Index: []
Index([], dtype='object')
503
5541
30
Traceback (most recent call last):
File "/Users/marioveloso/PycharmProjects/watchlist/fundamentals.py", line 134, in
income = si.get_income_statement(stock)
File "/Users/marioveloso/anaconda3/envs/watchlist/lib/python3.8/site-packages/yahoo_fin/stock_info.py", line 422, in get_income_statement
temp = json_info["incomeStatementHistory"]["incomeStatementHistory"]
TypeError: string indices must be integers
The text was updated successfully, but these errors were encountered: