Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Summarize Customer Transactions | Financial Data Analysis for Bankers
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Bankers

bookChallenge: Summarize Customer Transactions

Tehtävä

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.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 3
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

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

Pyyhkäise näyttääksesi valikon

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 3
single

single

some-alt