fix reset_index erasing the name of the column (#6619)

This commit is contained in:
Danglewood
2024-08-09 01:36:50 -07:00
committed by GitHub
parent 3e24fd6b18
commit dd13aa5341

View File

@@ -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: