diff options
author | hjoaquim <h.joaquim@campus.fct.unl.pt> | 2024-04-29 15:30:14 +0100 |
---|---|---|
committer | hjoaquim <h.joaquim@campus.fct.unl.pt> | 2024-04-29 15:30:14 +0100 |
commit | b2068580089cbd2a9d2b1eb9aadc7cb18cbb5c2f (patch) | |
tree | 6b35eb7827d2b8403685a59f2f800ad83f9cbaba | |
parent | b43364b4655034c3c0dcef91a71a36b1d07106a9 (diff) |
ensure everything on the dataframe is a string
-rw-r--r-- | openbb_terminal/openbb_terminal/controllers/utils.py | 3 |
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, |