Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Analyze Profit Trends | Analyzing Financial Data
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Accountants

bookChallenge: Analyze Profit Trends

Uppgift

Swipe to start coding

Given a CSV file containing columns for Month, Revenue, and Expenses, your goal is to analyze monthly profit trends for a fictional company.

  • Calculate the monthly profit by subtracting the Expenses column from the Revenue column for each row.
  • Compute a 3-month moving average of the monthly profit, with at least one period required for calculation.
  • Plot both the monthly profit and its 3-month moving average on a line chart, labeling each line appropriately.
  • The x-axis should represent the Month column, and the y-axis should represent profit.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 5
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Analyze Profit Trends

Svep för att visa menyn

Uppgift

Swipe to start coding

Given a CSV file containing columns for Month, Revenue, and Expenses, your goal is to analyze monthly profit trends for a fictional company.

  • Calculate the monthly profit by subtracting the Expenses column from the Revenue column for each row.
  • Compute a 3-month moving average of the monthly profit, with at least one period required for calculation.
  • Plot both the monthly profit and its 3-month moving average on a line chart, labeling each line appropriately.
  • The x-axis should represent the Month column, and the y-axis should represent profit.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 5
single

single

some-alt