Is Our Project Profitable? ROI 1/2
Is our project profitable? To figure this out, you can calculate one simple metric titled ROI; the formula is:
- Earnings, the sum of the column
'money_spent'
. - Losses, the sum of the column
'cost'
.
Aufgabe
Swipe to start coding
- Calculate the sum of the column
df['cost']
, and assign it to the variablecost_sum
. - Calculate the sum of the column
df['money_spent']
, and assign it to the variablespent_sum
. - Calculate
ROI
:
- Subtract
cost_sum
from thespent_sum
. - Divide the subtraction by the
cost_sum
.
- Output the
ROI
.
The result was already multiplied by 100 to get it in percentage.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 4. Kapitel 9
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Awesome!
Completion rate improved to 2.08
Is Our Project Profitable? ROI 1/2
Swipe um das Menü anzuzeigen
Is our project profitable? To figure this out, you can calculate one simple metric titled ROI; the formula is:
- Earnings, the sum of the column
'money_spent'
. - Losses, the sum of the column
'cost'
.
Aufgabe
Swipe to start coding
- Calculate the sum of the column
df['cost']
, and assign it to the variablecost_sum
. - Calculate the sum of the column
df['money_spent']
, and assign it to the variablespent_sum
. - Calculate
ROI
:
- Subtract
cost_sum
from thespent_sum
. - Divide the subtraction by the
cost_sum
.
- Output the
ROI
.
The result was already multiplied by 100 to get it in percentage.
Lösung
War alles klar?
Danke für Ihr Feedback!
Awesome!
Completion rate improved to 2.08Abschnitt 4. Kapitel 9
single