Ravindra BagaleCourses & study guides मराठी Track your progress

Python Mini Projects for Beginners: 5 Practice Projects Before Learning pandas

P13.6 What to Learn After Python Basics: Your Path to pandas

Why. You now know enough Python to start real data analysis. The next step is pandas, which turns everything you did by hand into short commands.

What. How your new skills map to pandas:

You learned In pandas it becomes
list of dictionaries pd.DataFrame(rows)
csv.DictReader loop pd.read_csv("file.csv")
dict totals by key df.groupby("key").sum()
NumPy mask filter df[df.amount > 1000]
np.where np.where on a column / df.assign
string methods df["city"].str.strip().str.title()
json.load pd.read_json / pd.json_normalize

How to read this table: each row maps one Python basics skill to its pandas version.

How.

Move on to the Data Science chapters

  1. Make sure every example in these 13 chapters runs on your computer.
  2. Take each chapter quiz and score at least 70%.
  3. Open Chapter 1 of the Data Science course.
  4. Keep this section open as a reference when pandas code looks strange.
1. Python basics (these 13 chapters)2. NumPy first steps3. pandas DataFrames4. Cleaning and EDA5. Charts and storytelling
Your learning path (read from top to bottom)

Worked example A — Your first pandas line (preview).

Step 1 — What we do. The orders table from the lists chapter, now in pandas. Install pandas first if needed.

Step 2 — Type and run this code.

import pandas as pd
orders = [
    {"order_id": "O1", "city": "Pune", "amount": 450},
    {"order_id": "O2", "city": "Mumbai", "amount": 1200},
    {"order_id": "O3", "city": "Pune", "amount": 300},
]
df = pd.DataFrame(orders)
print(df.groupby("city")["amount"].sum())

Step 3 — Output you should see.

city
Mumbai    1200
Pune       750
Name: amount, dtype: int64

Step 4 — What it means. One line does the city totals you wrote with loops earlier. Welcome to pandas!

Ravindra Bagale's Tip

Do not skip the quizzes. Getting 70% proves you are ready for pandas; below that, re-run the examples of the chapters you missed.

Samajla ka? If yes, take the quiz for this chapter. If not, run every example again and change one value each time.