mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-03 07:51:49 +00:00
Remove \n (#5045)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user