From 5f4ee569792283c22fc4936e4d3ff42b62034071 Mon Sep 17 00:00:00 2001 From: Henrique Joaquim Date: Tue, 30 Apr 2024 12:10:48 +0100 Subject: [PATCH] [BugFix] Empty views on `econometrics` and `quantitative` (#6353) * ensure everything on the dataframe is a string * stringify columns of dataframe --- .../openbb_terminal/controllers/base_platform_controller.py | 2 ++ 1 file changed, 2 insertions(+) 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):