[BugFix] Fix Pandas FutureWarning In derivatives.futures.curve Chart (#6626)

* fix Pandas FutureWarning in derivatives.futures.curve

* black
This commit is contained in:
Danglewood
2024-08-16 00:05:42 -07:00
committed by GitHub
parent ec9374181c
commit b2ab84fc7c

View File

@@ -107,9 +107,7 @@ class DerivativesViews:
provider = kwargs.get("provider", "")
df["expiration"] = to_datetime(df["expiration"], errors="ignore").dt.strftime(
"%b-%Y"
)
df["expiration"] = df["expiration"].apply(to_datetime).dt.strftime("%b-%Y")
if (
provider == "cboe"