mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-27 19:53:17 +00:00
Remove extra brackets
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user