Update gamestonk_terminal/fundamental_analysis/business_insider_api.py

Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
DidierRLopes
2021-03-06 14:44:12 +00:00
committed by GitHub
parent 557fe10895
commit 355dcdd423

View File

@@ -91,11 +91,9 @@ def management(l_args, s_ticker):
for ind in df_management.index:
s_name = f"{ind}{(max([len(x) for x in df_management.index])-len(ind))*' '}"
spacing = (
max([len(x) for x in df_management["Title"]])
- len(df_management["Title"][ind])
) * " "
s_title = f"{df_management['Title'][ind]}{spacing}"
df_mgmt_title = df_management["Title"]
spaces = max([len(x) for x in df_mgmt_title]) - len(df_mgmt_title[ind])
s_title = f"{df_mgmt_title[ind]}{spaces * ' '}"
s_management = f"""{s_name} {s_title} {df_management['Info'][ind]}"""
print(s_management)
if df_management["Insider Activity"][ind] not in "-":