summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrique Joaquim <henriquecjoaquim@gmail.com>2024-04-29 17:08:42 +0100
committerGitHub <noreply@github.com>2024-04-29 16:08:42 +0000
commit4105ec4e0145bf1be38f2c7e35cf35f388cded0f (patch)
tree7e2f823d0d12e2b68f27eb051aeb3d8999fb08fb
parenta502766d0180c8bb43f05725a6dca8fbea0c4ac6 (diff)
ensure everything on the dataframe is a string (#6351)
-rw-r--r--openbb_terminal/openbb_terminal/controllers/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbb_terminal/openbb_terminal/controllers/utils.py b/openbb_terminal/openbb_terminal/controllers/utils.py
index 6d886d9dab5..1ef3fb4e4e4 100644
--- a/openbb_terminal/openbb_terminal/controllers/utils.py
+++ b/openbb_terminal/openbb_terminal/controllers/utils.py
@@ -498,6 +498,9 @@ def print_rich_table( # noqa: PLR0912
if col == "":
df_outgoing = df_outgoing.rename(columns={col: " "})
+ # ensure everything on the dataframe is a string
+ df_outgoing = df_outgoing.applymap(str)
+
_get_backend().send_table(
df_table=df_outgoing,
title=title,