Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Analyze Profit Trends | Analyzing Financial Data
Python for Accountants

bookChallenge: Analyze Profit Trends

Tâche

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.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 5
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Suggested prompts:

Can you explain this in simpler terms?

What are the next steps I should take?

Can you provide an example?

close

bookChallenge: Analyze Profit Trends

Glissez pour afficher le menu

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 5
single

single

some-alt