Challenge: Automate Expense Categorization
Swipe to start coding
You are tasked with automating the categorization of business expenses for an accounting workflow. You will work with a CSV file containing raw expense transactions. Your script must read the data, clean it, categorize each expense based on keywords found in the transaction description, aggregate totals by category, and export a summary report as a new CSV file.
- Assign each expense to a category by analyzing the
Descriptionfield for specific keywords. - Ensure that only rows with both
AmountandDescriptionpresent are processed. - Calculate the total amount spent in each category.
- Output a summary CSV file with the aggregated totals by category.
Løsning
Takk for tilbakemeldingene dine!
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Fantastisk!
Completion rate forbedret til 7.14
Challenge: Automate Expense Categorization
Sveip for å vise menyen
Swipe to start coding
You are tasked with automating the categorization of business expenses for an accounting workflow. You will work with a CSV file containing raw expense transactions. Your script must read the data, clean it, categorize each expense based on keywords found in the transaction description, aggregate totals by category, and export a summary report as a new CSV file.
- Assign each expense to a category by analyzing the
Descriptionfield for specific keywords. - Ensure that only rows with both
AmountandDescriptionpresent are processed. - Calculate the total amount spent in each category.
- Output a summary CSV file with the aggregated totals by category.
Løsning
Takk for tilbakemeldingene dine!
single