Skip to content

Commit

Permalink
Change financials tables placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
ValueRaider committed Oct 17, 2022
1 parent d7e44d5 commit 22b87f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yfinance/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,10 +554,10 @@ def cleanup(data):
fin_data_quote = fin_data['QuoteSummaryStore']

# generic patterns
self._earnings = {"yearly": utils.empty_df(), "quarterly": utils.empty_df()}
self._earnings = {"yearly": _pd.DataFrame(), "quarterly": _pd.DataFrame()}
self._financials = {}
for name in ["income", "balance-sheet", "cash-flow"]:
self._financials[name] = {"yearly":utils.empty_df(), "quarterly":utils.empty_df()}
self._financials[name] = {"yearly":_pd.DataFrame(), "quarterly":_pd.DataFrame()}
for name in ["income", "balance-sheet", "cash-flow"]:
annual, qtr = self._create_financials_table(name, proxy)
if annual is not None:
Expand Down

0 comments on commit 22b87f9

Please sign in to comment.