Challenge: Summarize Customer Transactions
Swipe to start coding
Given a list of customer transactions, your goal is to analyze and summarize the account activity. Each transaction is represented as a dictionary containing the date, amount, and type (either "deposit" or "withdrawal").
- Create a pandas DataFrame from the provided list of transaction dictionaries.
- Calculate the total amount deposited by the customer.
- Calculate the total amount withdrawn by the customer.
- Determine the ending balance by subtracting total withdrawals from total deposits.
- Print the total deposits, total withdrawals, and ending balance in a readable format.
Solución
¡Gracias por tus comentarios!
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Genial!
Completion tasa mejorada a 4.76
Challenge: Summarize Customer Transactions
Desliza para mostrar el menú
Swipe to start coding
Given a list of customer transactions, your goal is to analyze and summarize the account activity. Each transaction is represented as a dictionary containing the date, amount, and type (either "deposit" or "withdrawal").
- Create a pandas DataFrame from the provided list of transaction dictionaries.
- Calculate the total amount deposited by the customer.
- Calculate the total amount withdrawn by the customer.
- Determine the ending balance by subtracting total withdrawals from total deposits.
- Print the total deposits, total withdrawals, and ending balance in a readable format.
Solución
¡Gracias por tus comentarios!
single