CSV Cleanup Crew: Automated Data Cleaning with CrewAI
Intermediate · 30 minutes · 5 tasks, checked automatically · 100 points
Build a two-agent CrewAI crew that reads a messy CSV file from your disk, cleans it (fixing headers, removing duplicates, handling blanks, standardising values), writes the cleaned file back to disk, and produces a written summary report of every change it made. You will wire up real file-reading tools, define agents with focused roles, and run the full pipeline end-to-end on your own machine.
What you’ll learn
- Install CrewAI and understand its core primitives: agents, tasks, tools, and crews
- Write custom Python tools that read and write real files on disk and register them to agents
- Define a two-agent sequential crew where one agent cleans data and another writes a summary report
- Run the crew end-to-end and verify both the cleaned CSV and the written summary are produced correctly
How this lab works
- Start the lab: One click starts a sandbox with a local model and the agent’s toolbox: no API key and no token bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work inspects the agent, its config and its output, and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: Locally, against a model on your computer: no API key, no tokens
- Model: claude-sonnet-4-6
- Open source: github.com/crewAIInc/crewAI
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Python 3.10+ available on your machine
- ANTHROPIC_API_KEY set in your environment
- Lab working directory ~/LearnXops/agent-labs/csv-cleanup-crew is your cwd
Topics: crewai, automation, csv, data-cleaning, multi-agent, file-tools, sequential-process, anthropic
Create a free account to start this lab.
Keep going
- Build and Invoke a Custom OpenClaw Shell-Out Skill
- OpenClaw Filesystem Access: Read, Summarise and Rewrite a Project File
- Teach Hermes to Remember: Generate, Review, and Re-Run a Custom Skill
- Build a Custom CrewAI Tool with @tool and Let an Agent Decide When to Use It
- Force Structured Output from a CrewAI Task with a Pydantic Model
- Build a Tool Node by Hand in LangGraph