Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Summarize Customer Transactions | Financial Data Analysis for Bankers
Python for Bankers

bookChallenge: Summarize Customer Transactions

Tâche

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.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 3
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Summarize Customer Transactions

Glissez pour afficher le menu

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 3
single

single

some-alt