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

bookChallenge: Analyze Profit Trends

Tarea

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.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 5
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

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

Desliza para mostrar el menú

Tarea

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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 5
single

single

some-alt