From dd13aa53419d69eec41c201eb3816c41bab939ce Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Fri, 9 Aug 2024 01:36:50 -0700 Subject: [PATCH] fix reset_index erasing the name of the column (#6619) --- openbb_platform/providers/cboe/openbb_cboe/utils/vix.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openbb_platform/providers/cboe/openbb_cboe/utils/vix.py b/openbb_platform/providers/cboe/openbb_cboe/utils/vix.py index 150e017c90de..74abbbf92009 100644 --- a/openbb_platform/providers/cboe/openbb_cboe/utils/vix.py +++ b/openbb_platform/providers/cboe/openbb_cboe/utils/vix.py @@ -146,6 +146,7 @@ async def get_vx_current( ] df = df.set_index("symbol") df = df.filter(items=current_symbols, axis=0).reset_index() + df = df.rename(columns={"index": "symbol"}) expirations: List = [] for month in current_months: