Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Plot Monthly Transaction Volumes | Financial Data Analysis for Bankers
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Bankers

bookChallenge: Plot Monthly Transaction Volumes

Tarea

Swipe to start coding

Given a DataFrame of transactions with dates, your goal is to group transactions by month, calculate the monthly totals for deposits and withdrawals, and plot both on the same chart using matplotlib.

  • Convert the date column to datetime and extract the month in "YYYY-MM" format.
  • Group the data by month and transaction type, summing the amount for each group.
  • Create a line or bar chart that displays both deposit and withdrawal totals for each month on the same plot.
  • The chart must have labeled axes, a title, and a legend distinguishing deposits and withdrawals.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. 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 main benefits or drawbacks?

Can you give me a real-world example?

close

bookChallenge: Plot Monthly Transaction Volumes

Desliza para mostrar el menú

Tarea

Swipe to start coding

Given a DataFrame of transactions with dates, your goal is to group transactions by month, calculate the monthly totals for deposits and withdrawals, and plot both on the same chart using matplotlib.

  • Convert the date column to datetime and extract the month in "YYYY-MM" format.
  • Group the data by month and transaction type, summing the amount for each group.
  • Create a line or bar chart that displays both deposit and withdrawal totals for each month on the same plot.
  • The chart must have labeled axes, a title, and a legend distinguishing deposits and withdrawals.

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 1. Capítulo 5
single

single

some-alt