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

bookChallenge: Summarize Customer Transactions

Oppgave

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.

Løsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 3
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

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: Summarize Customer Transactions

Sveip for å vise menyen

Oppgave

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.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 3
single

single

some-alt