Challenge: Analyze Profit Trends
Aufgabe
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ösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 5
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Suggested prompts:
Can you explain this in simpler terms?
What are the next steps I should take?
Can you provide an example?
Großartig!
Completion Rate verbessert auf 7.14
Challenge: Analyze Profit Trends
Swipe um das Menü anzuzeigen
Aufgabe
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ösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 5
single