diff options
author | Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com> | 2024-05-01 23:15:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 23:15:47 +0200 |
commit | fbd13a1d95fb00ee555120e387d35659c27e8556 (patch) | |
tree | b8805b7958ed14175a8f1d49fba310df68fbb8c5 | |
parent | 35f76508d1e024b5dc3f799ee66707d4ca38e523 (diff) | |
parent | 9a02e501f8f4ba2dc608e4824dc46d90898fc260 (diff) |
Merge branch 'develop' into feature/cmd_sourcefeature/cmd_source
-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 0d4e79d07e4..0fc55c0ff1c 100644 --- a/cli/openbb_cli/controllers/base_platform_controller.py +++ b/cli/openbb_cli/controllers/base_platform_controller.py @@ -156,6 +156,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) @@ -174,11 +175,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) |