mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
[BugFix] Fix Pandas FutureWarning In derivatives.futures.curve Chart (#6626)
* fix Pandas FutureWarning in derivatives.futures.curve * black
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user