セクション 4. 章 9
single
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'.
タスク
スワイプしてコーディングを開始
- 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_sumfrom thespent_sum. - Divide the subtraction by the
cost_sum.
- Output the
ROI.
The result was already multiplied by 100 to get it in percentage.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 4. 章 9
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください