Challenge: 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
Expensescolumn from theRevenuecolumn 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
Monthcolumn, and the y-axis should represent profit.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 5
single
Demandez à l'IA
Demandez à l'IA
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?
Génial!
Completion taux amélioré à 7.14
Challenge: 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
Expensescolumn from theRevenuecolumn 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
Monthcolumn, and the y-axis should represent profit.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 5
single