pandas

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

pandas is the Python library for labelled, tabular and time-series data. This sub-section of the Data Science section explains pandas from installation to large-data techniques, with runnable examples and a link to the official documentation page each example derives from. It is written against pandas 3.1 with NumPy 2.5, and the versions, behaviour and links were checked in October 2026. Examples target Python 3.13 or 3.14 and were run on Python 3.13; pandas 3.1 itself needs Python 3.11 or later. The pandas entries of the Data Science cheat sheet give the shortest summary of the same material.

Version baseline

Item Baseline

pandas

3.1 (the 3.x series made copy-on-write and the dedicated string dtype the defaults)

Python

3.13 or 3.14 (examples run on 3.13; pandas 3.1 needs 3.11 or later)

NumPy

2.5

Checked

October 2026

Older books and tutorials describe pandas 0.x, 1.x and 2.x behaviour. Where it differs from 3.x, the pages say so in prose with versions and dates. The migration summary is on What’s New in 3.x and Migrating.

Concept-to-page map

Getting started

Concept Page

Installing pandas, version numbers and release policy

Installing pandas and Understanding Its Versions

A first tour of the library

10 Minutes to pandas

Differences between 2.x and 3.x, upgrade steps

What’s New in 3.x and Migrating

Display, precision and behaviour options

Options & Settings

Frequent questions and surprising behaviour

FAQ and Gotchas

Core data structures

Concept Page

One-dimensional labelled arrays

Series

Two-dimensional labelled tables

DataFrame

Labels, axes and index types

Index Objects

Hierarchical labels

MultiIndex

Arithmetic, descriptive statistics, sorting and other everyday operations

Essential Basic Functionality

Duplicate labels and duplicate rows

Duplicate Labels and Rows in pandas

Selecting and transforming

Concept Page

Label, position and boolean selection

Indexing and Selecting

Column expressions, selecting and filtering

"pd.col, select and filter"

Applying your own functions

User-Defined Functions

Split-apply-combine aggregation

Group By: Split-Apply-Combine

Rolling, expanding and exponentially weighted windows

Rolling, Expanding and EWM

Styled tables for reports

Table Styling

Plotting straight from a DataFrame

Charts with pandas

Combining and reshaping

Concept Page

Stacking tables along an axis

Concatenation

Database-style joins

Merge & Join in pandas

Long and wide layouts, cross-tabulation

Pivot & Pivot Tables in pandas

Unpivoting, stacking and exploding list-like cells

Melt, Stack & Explode in pandas

Data types

Concept Page

Which dtypes exist and how they are chosen

Data Types Overview

Missing values and how each dtype represents them

Missing Data in pandas

Integer, float and boolean dtypes that hold missing values

Nullable Integer, Float and Boolean Dtypes in pandas

The default string dtype and the .str accessor

Text Data & the str Dtype in pandas

Fixed sets of labels

Categorical Data in pandas

Arrow-backed columns

PyArrow-Backed Data

Mostly-empty data

Sparse Data

Copy and view semantics

Copy-on-Write

Time series

Concept Page

Timestamps, periods, time zones and date ranges

Time Series and Dates

Durations and differences between timestamps

Time Deltas

Changing frequency, downsampling and upsampling

Resampling and Frequencies

Reading and writing data

Format Page

CSV and delimited text

CSV & Text Files

Excel workbooks

Excel

JSON, HTML tables and XML

JSON, HTML & XML

Parquet, Feather, ORC and Iceberg

Parquet, Feather, ORC and Iceberg

Relational databases through SQLAlchemy

SQL Databases

HDF5 and pickle

HDF5 and Pickle

Stata, SAS and SPSS files

HDF5 and Pickle: Stata, SAS and SPSS

Performance and scale

Concept Page

Vectorisation, eval, query and other speed-ups

Enhancing Performance

Memory, chunking and alternatives for data larger than RAM

Scaling to Large Datasets

Coming from another tool

If you know Page

SQL

Coming from SQL

R or spreadsheets

Coming from R & Spreadsheets

Suggested learning path

  1. Install a supported environment with Installing pandas and Understanding Its Versions, then follow 10 Minutes to pandas.

  2. Learn the structures: Series, DataFrame and Index Objects.

  3. Practise selection with Indexing and Selecting and the semantics in Copy-on-Write.

  4. Load real data through the input and output pages, starting with CSV & Text Files.

  5. Clean it with Missing Data in pandas, Duplicate Labels and Rows in pandas and Text Data & the str Dtype in pandas.

  6. Summarise and reshape with Group By: Split-Apply-Combine, Merge & Join in pandas and Pivot & Pivot Tables in pandas.

  7. Add time with Time Series and Dates and Resampling and Frequencies.

  8. Scale up with Enhancing Performance and Scaling to Large Datasets.

pandas sources

Bibliography

All official links below were opened on 2026-10-30.

Official documentation

Books

Books are linked to the publisher’s page. They were used only to decide which topics to cover; where they describe older pandas behaviour, the pages say so in prose.