mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
avoid range index as it breaks interactive tables (#6360)
This commit is contained in:
@@ -128,6 +128,8 @@ class CLIController(BaseController):
|
||||
"""Call command."""
|
||||
mdl = getattr(obb, router)
|
||||
df = pd.DataFrame.from_dict(mdl.model_dump(), orient="index")
|
||||
if isinstance(df.columns, pd.RangeIndex):
|
||||
df.columns = [str(i) for i in df.columns]
|
||||
return print_rich_table(df, show_index=True)
|
||||
|
||||
for router, value in PLATFORM_ROUTERS.items():
|
||||
|
||||
Reference in New Issue
Block a user