Minu's Games logo
MINU'S ROBOTICS

A Minu's Games EdTech Lab

← Code & Cognition
Day 21 of 30Real Python & Data

🔎Exploratory Data Analysis · Project

🎯 Today's objective

Combine Pandas + charts to interrogate a real dataset.

📖 Key concepts

  • Ask questions of the data
  • Clean: missing values, types
  • Summarise: describe(), value_counts()
  • Visualise to confirm

💻 Try this code

import pandas as pd

# Create data.csv inside Pyodide's virtual file system
csv_content = """name,category,rating,box_office_millions
Inception,Sci-Fi,8.8,836
Interstellar,Sci-Fi,8.7,731
The Dark Knight,Action,9.0,1006
Parasite,Drama,8.5,262
Mad Max: Fury Road,Action,8.1,380
"""

with open("data.csv", "w") as f:
    f.write(csv_content)

# Now your starter code works normally!
df = pd.read_csv("data.csv")
print("Shape:", df.shape)
print("\nSummary Stats:\n", df.describe())
print("\nCategory Counts:\n", df["category"].value_counts())

👥 Learn it your way

🧒 Young Explorers

Be a data detective: ask a question, then let the data answer it.

Your task

Pick a fun dataset (e.g., Pokémon, movies) and answer 3 questions about it.

💼 Professionals

Build a repeatable EDA checklist: shape, dtypes, nulls, distributions, correlations.

Your task

On a real CSV, report 3 insights with supporting summaries/plots.

🤖 AI connection

EDA is how you decide which features matter and whether the data is fair/representative — the groundwork that determines if a model will succeed or fail.

★ Week 3 Project — Dataset Explorer

Choose a real CSV dataset. Load it with Pandas, clean it, answer 3–5 questions with summaries and at least 2 charts, and write a short "what I found" note. Pro stretch: identify a potential bias or data-quality issue.

✅ Quick check

What does value_counts() give you?

How many times each unique value appears in a column.

Why do EDA before modelling?

To understand, clean, and trust the data first.