Pandas is the de-facto standard for working with tabular data in Python - and once you internalize its model (DataFrame = labeled 2D table, Series = labeled 1D array), 90% of your "wait, how do I do X in Pandas?" questions disappear. This tutorial gives you that mental model first, then walks through every operation you will actually hit in real data work.
We cover reading and writing data (CSV, SQL, Excel), selecting rows and columns, cleaning and converting types, combining DataFrames (concat / merge / join), grouping and reshaping (groupby / pivot / melt), and visualization. Every example uses real-looking data instead of toy [1, 2, 3] rows, and every snippet is tested on pandas 2.x.
Click Start the course to begin with the Pandas concepts chapter, or jump to the chapter you need - Selecting Rows and Columns and Combining DataFrames are the most-bookmarked.
How to use this course
Open a Jupyter notebook or IPython session beside each lesson. Load the sample CSV or SQL extract provided in the article, run the snippet, and inspect df.head() after every transformation so you can see dtype changes before they surprise you in production. The first chapters establish Series vs DataFrame mental models; middle chapters cover selection, cleaning, and merges; closing chapters handle time series, rolling windows, and plotting.
If a method accepts many parameters (read_csv, merge, groupby), the lesson shows the two or three arguments you will use daily and links to the pandas documentation for the rest.
What to install
| Package | Purpose |
|---|---|
| Python 3.10+ | Matches pandas 2.x wheels on Linux and macOS |
| pandas 2.x | Core tutorial runtime |
| JupyterLab or notebook | Interactive exploration |
| Optional: SQLAlchemy + DB driver | Database read/write chapters |
| Optional: matplotlib | Histogram and plot examples |
Create a virtual environment with python -m venv .venv before installing packages. For broader Python syntax and virtualenv workflow, see the Python tutorial hub.
Skills by chapter group
| Group | Typical tasks |
|---|---|
| IO | CSV, Excel, SQL, parquet-style exports |
| Selection | loc/iloc, boolean masks, multi-index columns |
| Cleaning | Missing values, type coercion, string ops |
| Combine | concat, merge, join, reshaping with pivot |
| Analyze | groupby, aggregations, resample, rolling stats |
| Present | Histograms and quick plots for sanity checks |
After tabular workflows feel natural, continue with the Python tutorial for broader data tooling or export clean DataFrames to BI tools from the SQL integration lessons.

