Skip to content

Commit

Permalink
[BugFix] Fix Pandas FutureWarning In derivatives.futures.curve Chart (
Browse files Browse the repository at this point in the history
OpenBB-finance#6626)

* fix Pandas FutureWarning in derivatives.futures.curve

* black
  • Loading branch information
deeleeramone authored Aug 16, 2024
1 parent ec93741 commit b2ab84f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ def derivatives_futures_curve( # noqa: PLR0912

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"
Expand Down

0 comments on commit b2ab84f

Please sign in to comment.