Skip to content

Commit

Permalink
Re-order columns in enterprise value report
Browse files Browse the repository at this point in the history
  • Loading branch information
stkerr committed Jun 6, 2022
1 parent 262d155 commit 80b83fe
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,19 @@ def display_enterprise(
"""
df_fa = fmp_model.get_enterprise(ticker, number, quarterly)
df_fa = df_fa[df_fa.columns[::-1]]

# Re-order the returned columns so they are in a more logical ordering
df_fa = df_fa.reindex(
[
"Symbol",
"Stock price",
"Number of shares",
"Market capitalization",
"Add total debt",
"Minus cash and cash equivalents",
"Enterprise value",
]
)
if df_fa.empty:
console.print("[red]No data available[/red]\n")
else:
Expand Down

0 comments on commit 80b83fe

Please sign in to comment.