pandas is a Python package for working with labeled, tabular, and time-series data. It provides Series and DataFrame objects with alignment, grouping, and rich import and export options.
Overview
pandas is a Python toolkit for practical data analysis built around expressive labeled data structures. It targets relational and annotated datasets similar to R data frames, aiming to be a high-level building block for real-world analytics in Python.
Core objects include mutable columns in DataFrames, automatic and explicit alignment between labels, and missing-value handling for floating and non-floating types. Group-by operations support split-apply-combine aggregation and transformation. Label-based indexing, merging, joining, reshaping, and pivoting help combine messy sources into consistent tables.
I/O covers flat delimited files, Excel, databases, and HDF5 among other formats. Time-series utilities include date ranges, frequency conversion, moving window statistics, and lag operations. Hierarchical axis labels allow multiple index levels on the same dimension.
Packages install from PyPI or conda-forge and depend on Python and supporting libraries such as python-dateutil. Official user and API documentation is published on the project site. The library is widely used as an importable dependency inside notebooks, scripts, and application code rather than as a standalone server.
Key features
- Series and DataFrame structures
- Missing data handling
- Group-by aggregation and transforms
- Merge, join, and reshape operations
- CSV, Excel, and database I/O
- HDF5 fast storage support
- Time series and date tooling
- Hierarchical multi-index labels
Use cases
- Exploratory data analysis in Python
- Cleaning and aligning datasets
- Time-series statistics
- ETL from files and databases
- Notebook-centric analytics workflows