Skip to content

Commit

Permalink
Remove \n (#5045)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorWounds authored May 19, 2023
1 parent a6a2268 commit 80c7e02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openbb_terminal/stocks/insider/openinsider_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 80c7e02

Please sign in to comment.