mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 21:12:16 +00:00
Clarify values by re-ordering rows in enterprise value report (#1908)
* Re-order columns in enterprise value report * Update test files with changed values Co-authored-by: James Maslek <jmaslek11@gmail.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -3,6 +3,6 @@ Symbol PM PM PM PM
|
||||
Stock price 107.940 74.480 84.330 79.650 103.520
|
||||
Number of shares 1.552 B 1.555 B 1.555 B 1.557 B 1.557 B
|
||||
Market capitalization 167.523 B 115.816 B 131.133 B 124.015 B 161.181 B
|
||||
Minus cash and cash equivalents 8.447 B 6.593 B 6.861 B 7.280 B 4.496 B
|
||||
Add total debt 34.339 B 31.759 B 31.045 B 31.536 B 27.806 B
|
||||
Minus cash and cash equivalents 8.447 B 6.593 B 6.861 B 7.280 B 4.496 B
|
||||
Enterprise value 193.415 B 140.982 B 155.317 B 148.271 B 184.491 B
|
||||
|
||||
@@ -3,6 +3,6 @@ Symbol PM PM PM PM
|
||||
Stock price 107.940 74.480 84.330 79.650 103.520
|
||||
Number of shares 1.552 B 1.555 B 1.555 B 1.557 B 1.557 B
|
||||
Market capitalization 167.523 B 115.816 B 131.133 B 124.015 B 161.181 B
|
||||
Minus cash and cash equivalents 8.447 B 6.593 B 6.861 B 7.280 B 4.496 B
|
||||
Add total debt 34.339 B 31.759 B 31.045 B 31.536 B 27.806 B
|
||||
Minus cash and cash equivalents 8.447 B 6.593 B 6.861 B 7.280 B 4.496 B
|
||||
Enterprise value 193.415 B 140.982 B 155.317 B 148.271 B 184.491 B
|
||||
|
||||
Reference in New Issue
Block a user