Remove extra brackets

This commit is contained in:
Artem Veremey
2021-03-13 14:28:43 -08:00
parent 9bfe84565e
commit cfdcecf8f3

View File

@@ -25,7 +25,7 @@ def load_ticker(ticker: str, start_date: str) -> DataFrame:
print(f"Start date: {start_date}")
df_data = yf.download(ticker, start=start_date, progress=False)
df_data["date_id"] = ((df_data.index.date - df_data.index.date.min())).astype(
df_data["date_id"] = (df_data.index.date - df_data.index.date.min()).astype(
"timedelta64[D]"
)
df_data["date_id"] = df_data["date_id"].dt.days + 1