diff options
Diffstat (limited to 'openbb_terminal')
-rw-r--r-- | openbb_terminal/openbb_terminal/controllers/base_platform_controller.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openbb_terminal/openbb_terminal/controllers/base_platform_controller.py b/openbb_terminal/openbb_terminal/controllers/base_platform_controller.py index d75edbc447a..03516a4421e 100644 --- a/openbb_terminal/openbb_terminal/controllers/base_platform_controller.py +++ b/openbb_terminal/openbb_terminal/controllers/base_platform_controller.py @@ -171,6 +171,8 @@ class PlatformController(BaseController): elif hasattr(obbject, "to_dataframe"): df = obbject.to_dataframe() + if isinstance(df.columns, pd.RangeIndex): + df.columns = [str(i) for i in df.columns] print_rich_table(df, show_index=True) elif isinstance(obbject, dict): |