Challenge: Summarize Customer Transactions
Tarefa
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.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 3
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 4.76
Challenge: Summarize Customer Transactions
Deslize para mostrar o menu
Tarefa
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.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 3
single