diff options
author | Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com> | 2023-05-19 20:26:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-19 18:26:57 +0000 |
commit | 80c7e027076ae53c2bfc1d59695becc69207aba3 (patch) | |
tree | a73dbf37dc2d8f94812575dc69627977833f3353 | |
parent | a6a2268ddc3724ef69e9fb5e6c110a2fbdb11ffd (diff) |
Remove \n (#5045)
-rw-r--r-- | openbb_terminal/stocks/insider/openinsider_model.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openbb_terminal/stocks/insider/openinsider_model.py b/openbb_terminal/stocks/insider/openinsider_model.py index 0c1a441a284..4610380efe0 100644 --- a/openbb_terminal/stocks/insider/openinsider_model.py +++ b/openbb_terminal/stocks/insider/openinsider_model.py @@ -1498,17 +1498,18 @@ def get_print_insider_data(type_insider: str = "lcb"): lambda x: "\n".join(textwrap.wrap(x, width=10)) if isinstance(x, str) else x ) df["Company Name"] = df["Company Name"].apply( - lambda x: "\n".join(textwrap.wrap(x, width=20)) if isinstance(x, str) else x + lambda x: " ".join(textwrap.wrap(x, width=20)) if isinstance(x, str) else x ) df["Title"] = df["Title"].apply( lambda x: "\n".join(textwrap.wrap(x, width=10)) if isinstance(x, str) else x ) if type_insider == "lcb": df["Industry"] = df["Industry"].apply( - lambda x: "\n".join(textwrap.wrap(x, width=20)) if isinstance(x, str) else x + lambda x: " ".join(textwrap.wrap(x, width=20)) if isinstance(x, str) else x ) else: df["Insider Name"] = df["Insider Name"].apply( lambda x: "\n".join(textwrap.wrap(x, width=20)) if isinstance(x, str) else x ) + return df |