diff options
author | Danglewood <85772166+deeleeramone@users.noreply.github.com> | 2024-05-01 10:57:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 10:57:06 -0700 |
commit | 7fa2dad84e81a05b7a49b5b0d73478ec9fb6530b (patch) | |
tree | d1070b2bbd7e07fab490009ac93dd0696b58d7a2 | |
parent | e35e9533201c4b4ed1f9822977da82f74c844eac (diff) | |
parent | 9a02e501f8f4ba2dc608e4824dc46d90898fc260 (diff) |
Merge branch 'develop' into bugfix/cboe-derivatives-symbolbugfix/cboe-derivatives-symbol
-rw-r--r-- | cli/openbb_cli/controllers/base_platform_controller.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/openbb_cli/controllers/base_platform_controller.py b/cli/openbb_cli/controllers/base_platform_controller.py index 50476a68460..c6b7d6b0374 100644 --- a/cli/openbb_cli/controllers/base_platform_controller.py +++ b/cli/openbb_cli/controllers/base_platform_controller.py @@ -154,6 +154,7 @@ class PlatformController(BaseController): obbject = translator.execute_func(parsed_args=ns_parser) df: pd.DataFrame = None fig: OpenBBFigure = None + title = f"{self.PATH}{translator.func.__name__}" if obbject: Registry.register(obbject) @@ -172,11 +173,11 @@ class PlatformController(BaseController): 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) + print_rich_table(df=df, show_index=True, title=title) elif isinstance(obbject, dict): df = pd.DataFrame.from_dict(obbject, orient="index") - print_rich_table(df, show_index=True) + print_rich_table(df=df, show_index=True, title=title) elif obbject: Session().console.print(obbject) |