Skip to content

Commit

Permalink
fix output of yfinance.download Date for Colab (#6645)
Browse files Browse the repository at this point in the history
  • Loading branch information
deeleeramone authored Aug 28, 2024
1 parent d172dcb commit 30c8ac2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ def yf_download(
threads=False,
**kwargs,
)
if hasattr(data.index, "tz") and data.index.tz is not None:
data = data.tz_convert(None)

except ValueError as exc:
raise EmptyDataError() from exc

Expand Down

0 comments on commit 30c8ac2

Please sign in to comment.