fix output of yfinance.download Date for Colab (#6645)

This commit is contained in:
Danglewood
2024-08-28 00:51:24 -07:00
committed by GitHub
parent d172dcb801
commit 30c8ac2a85

View File

@@ -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