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.
Oplossing
Bedankt voor je feedback!
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Geweldig!
Completion tarief verbeterd naar 4.76
Challenge: Summarize Customer Transactions
Veeg om het menu te tonen
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.
Oplossing
Bedankt voor je feedback!
single