Challenge: Analyze Profit Trends
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 5
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Fantastico!
Completion tasso migliorato a 7.14
Challenge: Analyze Profit Trends
Scorri per mostrare il menu
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 5
single