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

Conteúdo do Curso

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'.

Tarefa

  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 desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 4. Capítulo 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'.

Tarefa

  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 desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 4. Capítulo 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'.

Tarefa

  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 desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu 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'.

Tarefa

  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 desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Seção 4. Capítulo 9
Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
some-alt