Skip to content

Commit

Permalink
BUG: Drop blank data from yahoo
Browse files Browse the repository at this point in the history
  • Loading branch information
David Stephens committed Oct 1, 2017
1 parent fb3ddeb commit 8c64bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas_datareader/yahoo/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def read(self):
df['Ret_Index'] = _calc_return_index(df['Adj Close'])
if self.adjust_price:
df = _adjust_prices(df)
return df.sort_index()
return df.sort_index().dropna(how='all')
finally:
self.close()

Expand Down

0 comments on commit 8c64bd7

Please sign in to comment.