🎓 A1Learner
🔍
0 of 50 lessons completed

Home / Pandas

Pandas

Pandas from a first table to a finished project: read CSVs, inspect and clean data, filter and sort, group and join, then chart the findings with NumPy and Matplotlib. Every example runs for real.

Pandas is the Python library for working with tables of data. Fifty short lessons carry you from a first table to a finished sales project, with every example run for real on pandas.

Start learning ❯❯50 lessons · 12 topics · 0/50 completed

Course contents

Work top to bottom — the sidebar is the course. Topics later in the list assume the ones before them.

Getting Started

Start: Pandas Introduction ❯

Reading Data

Start: Reading a CSV File ❯

Looking at Data

Start: Head, Tail and Shape ❯

Selecting

Start: Picking One Column ❯

Filtering

Start: Filtering with a Condition ❯

Cleaning

Start: Fixing Missing Values ❯

Sorting and Reshaping

Start: Sorting Rows ❯

Grouping

Start: Grouping and Adding Up ❯

Combining

Start: Stacking Tables ❯

NumPy

Start: NumPy Arrays ❯

Plotting

Start: A First Chart ❯

A Full Project

Start: Project: Load and Look ❯

Learn Pandas

Pandas is a Python library for tables of data. A DataFrame holds rows and columns, like a spreadsheet you can program. You load a file into a table, look at the table, clean it, ask it questions, and save the answers. The library does the heavy work; your job is to say which rows and columns matter.

The course follows one job from start to finish. A sales table of twelve orders loads from a CSV file, then gets inspected, filtered, cleaned, grouped, and joined to a second table of costs. NumPy handles the fast maths underneath, and Matplotlib turns the answers into charts. Each stage uses the table the last stage produced, so nothing is a one-off trick.

Fifty lessons in twelve groups carry the teaching. Tables and reading files open the course, then selecting, filtering, and cleaning. Sorting and reshaping follow, before grouping, combining, and the NumPy and plotting introductions. A five-lesson project closes the course, loading, cleaning, grouping, joining, and charting the same sales table end to end.

What you will learn

Here are the 50 lessons in teaching order:

  • Build a table from a dict, and read one from a CSV or JSON file
  • Look at a table with head, tail, shape, describe, and info
  • Pick columns and rows with brackets, loc, and iloc
  • Filter rows with conditions, and find missing values with isna
  • Fill gaps, drop copies, change types, and rename columns
  • Sort rows and reset the index after filtering
  • Reshape wide data to long with melt, and back with pivot_table
  • Split rows into groups and add them up with groupby
  • Run several summaries at once with agg, and send group values back with transform
  • Stack tables with concat, and join them with merge
  • Spot merge traps: duplicated keys, shared names, and validate
  • Do fast maths with NumPy arrays, and move values between arrays and tables
  • Draw bar, line, and scatter charts with Matplotlib, and label them
  • Finish a project: load, clean, group, join, chart, and save

Who this Pandas course is for

No earlier data work is assumed. The opening lessons show what a table is, before you read one from a file, and every new term shows up inside the example that needs it. You should know a little Python first: variables, lists, and dicts. Readers without it do well to take the Python Beginner course first.

Lesson time adds up to three hours and forty-nine minutes. Most readers slow down in the grouping and merging lessons, which is normal. Reading those lessons a second time helps more than anywhere else in the course.

Students heading toward data analysis, spreadsheets, or science classes will find the opening lessons familiar. Hobbyists curious about their own data get the grounding those tables expect. Readers coming from Excel meet the same ideas — filters, totals, lookups — spelled out in code rather than menus.

How this course works

Every example runs for real on pandas 3.0.6, and the output shown is the output the run really gave. Charts are saved to files, never just shown, and the file size proves the chart was written. A sample meant to fail shows the error beside it, in the runner’s own words.

Every lesson ends with a program that runs, plus one question on the idea. The teaching order stays fixed because grouping makes little sense before filtering lands, and merging makes little sense before grouping lands. Your place is kept here in the browser, on the machine you used, with no account and no charge for any lesson.

Frequently asked questions

Does this course teach NumPy and Matplotlib too?

Yes, both in short. Four lessons introduce NumPy arrays and four more introduce Matplotlib charts, always through the same sales table. The course stays a pandas course: NumPy and Matplotlib appear where the data work needs them, and neither gets a course of its own here.

What setup do I need before starting?

Nothing at all to begin. Every lesson has a code runner in the page, so the examples run in the browser. The second lesson shows pip install pandas for readers who want pandas on their own computer, and the version check in the same lesson proves the install worked.

How long is the course?

Fifty lessons totalling three hours and forty-nine minutes, so just under four hours of core material. Running each example yourself takes about twice as long. The five-lesson project at the end counts in that total.

What is the hardest part of pandas?

Merging and reshaping ask the most here, so this course holds them until filtering, cleaning, and grouping feel familiar. The merge traps fill a whole lesson, since a duplicated key silently multiplying rows is the most common first surprise.

What can I do with pandas afterwards?

A small data report end to end: load a CSV file, check it for gaps and copies, answer questions with grouping, join a second table for costs, chart the findings, and save the table and the chart as files. The closing project does exactly that with a twelve-order sales table.

Is there a charge for the course?

No. Every lesson is open without payment, with no account to create. The site remembers your place on the device you used, and charges nothing for any lesson.

Next steps

  • Python Beginner ❯ — The foundation under this course: 116 lessons that teach Python itself, from a first program to files and classes.
  • SQL ❯ — The other side of tables: 51 lessons on asking a database questions with select, filter, joins, and window functions.
  • Python Intermediate ❯ — The next step in Python: 52 lessons that build bigger programs, with classes, files, and error handling.