This repository contains interactive coding exercises for weeks 1 and 2 in Code:You Data Analysis Module 2.
Each week includes a Marimo app that guides you through exercises and allows you to check your work by revealing expected outputs.
Instead of completing exercises directly in TopHat, you will:
- Write your code in your own environment (VS Code or Jupyter)
- Use the Marimo apps to:
- Read prompts
- Reveal expected outputs
- Check your work
You will not see the answer code — only what your output should match.
git clone https://github.com/CodeYouOrg/DA_M2_CodingExercises
cd DA_M2_CodingExercisestouch w1_exercises.ipynb w2_exercises.ipynbYou must install Marimo before running any exercises: Windows:
pip install marimoMac/Linux:
pip3 install marimoEach week has its own .py file.
For example, Module 2 Week 1, run:
marimo run m2w1_marimo.pyThis will open the interactive app in your browser.
For each exercise:
- Read the prompt in the Marimo app
- Copy the provided starter code into the exercise notebook you created
- Write your solution
- Run your code locally
- Go back to the Marimo app
- Click "Show expected output"
- Compare your result
- You should NOT write code inside the Marimo app
- All coding should happen in your own environment
- The Marimo app is only for:
- Instructions
- Expected outputs
- Checking your work
- Pandas: A Data Analyst’s Best Friend
- Clean & Tidy Data
- Data Wrangling Essentials
- Practice Questions - create bar, scatter, and histogram plots
- Make sure you installed it:
marimo --verson
- Make sure you're located in the project directory when you run the command:
pwd
The goal of these exercises is to help you:
- Build confidence using Pandas
- Practice real data manipulation tasks
- Learn how to debug and validate your own work
If something feels confusing or broken, ask questions in class! That’s part of the process.