diff options
author | Henrique Joaquim <henriquecjoaquim@gmail.com> | 2024-04-30 12:10:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 11:10:48 +0000 |
commit | 5f4ee569792283c22fc4936e4d3ff42b62034071 (patch) | |
tree | 1147bc0c3870d0ed5e263da015608f431f5022bc | |
parent | 9dce7346b22091b6a535929c200ca3044e360daa (diff) |
[BugFix] Empty views on `econometrics` and `quantitative` (#6353)
* ensure everything on the dataframe is a string
* stringify columns of dataframe
-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): |