Challenge: Analyze Profit Trends
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 5
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Suggested prompts:
Can you explain this in simpler terms?
What are the next steps I should take?
Can you provide an example?
Fantastisk!
Completion rate forbedret til 7.14
Challenge: Analyze Profit Trends
Stryg for at vise menuen
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 5
single