Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Is Our Project Profitable? ROI 1/2 | Becoming an Analyst
Introduction to Python for Data Analysis
course content

Course Content

Introduction to Python for Data Analysis

Introduction to Python for Data Analysis

1. Introduction to Python 1/2
2. Introduction to Python 2/2
3. Explore Dataset
4. Becoming an Analyst

bookIs 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:

roi

  • Earnings, the sum of the column 'money_spent'.
  • Losses, the sum of the column 'cost'.

Task

  1. Calculate the sum of the column df['cost'], and assign it to the variable cost_sum.
  2. Calculate the sum of the column df['money_spent'], and assign it to the variable spent_sum.
  3. Calculate ROI:
  • Subtract cost_sum from the spent_sum.
  • Divide the subtraction by the cost_sum.
  1. Output the ROI.

The result was already multiplied by 100 to get it in percentage.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 4. Chapter 9
toggle bottom row

bookIs 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:

roi

  • Earnings, the sum of the column 'money_spent'.
  • Losses, the sum of the column 'cost'.

Task

  1. Calculate the sum of the column df['cost'], and assign it to the variable cost_sum.
  2. Calculate the sum of the column df['money_spent'], and assign it to the variable spent_sum.
  3. Calculate ROI:
  • Subtract cost_sum from the spent_sum.
  • Divide the subtraction by the cost_sum.
  1. Output the ROI.

The result was already multiplied by 100 to get it in percentage.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 4. Chapter 9
toggle bottom row

bookIs 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:

roi

  • Earnings, the sum of the column 'money_spent'.
  • Losses, the sum of the column 'cost'.

Task

  1. Calculate the sum of the column df['cost'], and assign it to the variable cost_sum.
  2. Calculate the sum of the column df['money_spent'], and assign it to the variable spent_sum.
  3. Calculate ROI:
  • Subtract cost_sum from the spent_sum.
  • Divide the subtraction by the cost_sum.
  1. Output the ROI.

The result was already multiplied by 100 to get it in percentage.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Is our project profitable? To figure this out, you can calculate one simple metric titled ROI; the formula is:

roi

  • Earnings, the sum of the column 'money_spent'.
  • Losses, the sum of the column 'cost'.

Task

  1. Calculate the sum of the column df['cost'], and assign it to the variable cost_sum.
  2. Calculate the sum of the column df['money_spent'], and assign it to the variable spent_sum.
  3. Calculate ROI:
  • Subtract cost_sum from the spent_sum.
  • Divide the subtraction by the cost_sum.
  1. Output the ROI.

The result was already multiplied by 100 to get it in percentage.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 4. Chapter 9
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt