Skip to content

Commit

Permalink
Correct base.py for empty financials DF issue (191)
Browse files Browse the repository at this point in the history
  • Loading branch information
umashgh authored Sep 11, 2020
1 parent 476cf81 commit e5ca70b
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 @@ -280,8 +280,8 @@ def cleanup(data):
data = utils.get_json(url, proxy)

# holders
url = "{}/{}/holders".format(self._scrape_url, self.ticker)
holders = _pd.read_html(url)
url = "{}/{}".format(self._scrape_url, self.ticker)
holders = _pd.read_html(url+'/holders')
self._major_holders = holders[0]
self._institutional_holders = holders[1]
if 'Date Reported' in self._institutional_holders:
Expand Down

0 comments on commit e5ca70b

Please sign in to comment.