Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pandas_datareader/yahoo/daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ def _read_one_data(self, url, params):

# price data
prices = DataFrame(data["prices"])
if "Date" not in prices.columns:
return DataFrame(
columns=["Date", "High", "Low", "Open", "Close", "Volume", "Adjclose"]
)
prices.columns = [col.capitalize() for col in prices.columns]
prices["Date"] = to_datetime(to_datetime(prices["Date"], unit="s").dt.date)

Expand Down