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.
Lösung
Danke für Ihr Feedback!
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Großartig!
Completion Rate verbessert auf 4.76
Challenge: Summarize Customer Transactions
Swipe um das Menü anzuzeigen
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ösung
Danke für Ihr Feedback!
single