We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<ipython-input-5-5c0deba095ce> in get_financial_stats(ticker) 30 31 # Get balance sheet related info ---> 32 financial_statements = yahoo_financials.get_financial_stmts('annual', ['balance', 'income']) 33 for year in financial_statements['balanceSheetHistory'][ticker]: 34 df1 = pd.concat([df1, pd.DataFrame(year).T], sort=True) /anaconda3/lib/python3.6/site-packages/yahoofinancials/__init__.py in get_financial_stmts(self, frequency, statement_type, reformat) 403 data = {} 404 for stmt_type in statement_type: --> 405 re_data = self._run_financial_stmt(stmt_type, report_num, reformat) 406 data.update(re_data) 407 return data /anaconda3/lib/python3.6/site-packages/yahoofinancials/__init__.py in _run_financial_stmt(self, statement_type, report_num, reformat) 390 if reformat: 391 raw_data = self.get_stock_data(statement_type, report_name=report_name) --> 392 data = self.get_reformatted_stmt_data(raw_data, statement_type) 393 else: 394 data = self.get_stock_data(statement_type, report_name=report_name) /anaconda3/lib/python3.6/site-packages/yahoofinancials/__init__.py in get_reformatted_stmt_data(self, raw_data, statement_type) 347 dataType = raw_data['dataType'] 348 if isinstance(self.ticker, str): --> 349 sub_dict_ent = self._get_sub_dict_ent(self.ticker, raw_data, statement_type) 350 sub_dict.update(sub_dict_ent) 351 dict_ent = {dataType: sub_dict} /anaconda3/lib/python3.6/site-packages/yahoofinancials/__init__.py in _get_sub_dict_ent(self, ticker, raw_data, statement_type) 317 # Private Method to return subdict entry for the statement reformat process 318 def _get_sub_dict_ent(self, ticker, raw_data, statement_type): --> 319 form_data_list = self._reformat_stmt_data_process(raw_data[ticker], statement_type) 320 return {ticker: form_data_list} 321 /anaconda3/lib/python3.6/site-packages/yahoofinancials/__init__.py in _reformat_stmt_data_process(self, raw_data, statement_type) 299 def _reformat_stmt_data_process(self, raw_data, statement_type): 300 final_data_list = [] --> 301 stmt_id = self._get_stmt_id(statement_type, raw_data) 302 hashed_data_list = raw_data[stmt_id] 303 for data_item in hashed_data_list: /anaconda3/lib/python3.6/site-packages/yahoofinancials/__init__.py in _get_stmt_id(self, statement_type, raw_data) 293 i += 1 294 if i != 1: --> 295 sys.exit(1) 296 return stmt_id 297 SystemExit: 1
I haven't seen this one before, any ideas? I'm right now trying to scrape the financial data (in a loop) for all NASDAQ and SP500 tickers, by the way.
The text was updated successfully, but these errors were encountered:
Duplicate issue 🤦♂️
Sorry, something went wrong.
No branches or pull requests
I haven't seen this one before, any ideas? I'm right now trying to scrape the financial data (in a loop) for all NASDAQ and SP500 tickers, by the way.
The text was updated successfully, but these errors were encountered: