1. License
“Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met”
Free for paid and closed products; keep the BSD notice when you ship pandas.
github.com/pandas-dev/pandas/blob/main/LICENSE3. Used by agents' projects
Dependency in 268 public GitHub projects set up for AI coding agents that we scanned (4.3%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily; card checked Nov 11, 2026. Tap a verdict to see its source.How we checkedReport an error
What pandas does
pandas is a free Python library for working with tables of data in code. Your app or script reads a CSV or Excel file, cleans gaps, sums and groups rows, and saves a report or a chart. It works on data that fits in the computer's memory; much bigger data needs other tools.
What people build with it
Monthly sales report from a CSV
Turn an export of orders into a table of revenue per month and product, ready for a dashboard or an email.
Clean messy exports before import
Find and drop rows with empty fields, fix types and remove duplicates before data goes into your database.
Totals per customer group
Sum revenue per city, plan or customer and sort the biggest first.
Chart for a weekly update
Draw a bar or line chart straight from the table and save it as an image for a report or a site.
Join two data sources
Combine a payments export with a customer list by customer ID to see who paid what.
Answer data questions from an AI agent Idea
An AI assistant loads an uploaded spreadsheet into pandas and answers questions like "which month sold most mugs".
pandas popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How pandas is used
- pandas is a dependency in 268 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (16.5% of the 1,623 Python ones), #2 of 293 in ml and data science.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 2,824; those are left out of every share on this page.
- Projects that use it most often also use NumPy (70.5%), python-dotenv (50.0%), Requests (46.6%).
- It is more common in projects set up for Roo Code (8.1%) than for OpenAI Codex (2.8%).
By coding agent
Often used with
pandas in practice
Strengths
Objects can be aligned to an explicit set of labels. You can also ignore the labels and let <code>Series</code> and <code>DataFrame</code> align the data automatically during computations.
Group by handles both aggregating and transforming data. Merging, joining, reshaping and pivot tables sit alongside it.
The README lists date range generation, frequency conversion, moving window statistics, and date shifting and lagging.
Extras such as <code>pandas[excel]</code>, <code>pandas[parquet]</code> or <code>pandas[aws]</code> pull in the readers and writers for one job. You can pin them in <code>requirements.txt</code> or <code>pyproject.toml</code>.
Watch out for
pandas raises <code>ImportError</code> when you call a method whose optional dependency is not installed. For example, <code>read_hdf()</code> needs pytables and <code>to_markdown()</code> needs tabulate.
BeautifulSoup4 alone is not enough for <code>read_html()</code>. The docs say you must also install lxml, html5lib, or both.
The docs say <code>read_orc()</code> "may fail if pyarrow was installed from pypi" and recommend installing pyarrow with conda. They also say <code>read_orc()</code> is not compatible with Windows.
Install pandas, then add the Excel extra
pip install pandas
pip install "pandas[excel]"More about pandas
Funding
- Open Collective: https://opencollective.com/pandas
Agent Skills for it
- pandas-pro: Performs pandas DataFrame operations for data analysis, manipulation, and transformation. Use when working with pandas DataFrames, data clea
- pandas-pro: Performs pandas DataFrame operations for data analysis, manipulation, and transformation. Use when working with pandas DataFrames, data clea
Packages around it
- numpy: Required array dependency
- python-dotenv: Loads .env config
- requests: HTTP client
- pydantic: Data validation
- scikit-learn: Machine learning
- matplotlib: Plotting (plot extra)
More in ML and data science
Alternatives
pandas This page
Pick Polars for larger files or when speed matters most; it is a separate DataFrame library with its own API.
Pick DuckDB when you would rather ask your CSV or Parquet files questions in SQL.
Pick openpyxl when you need to edit an Excel file itself (cells, styles, formulas) rather than analyse its data.
Get started
Tell your AI assistant
“Use pandas 3.1.1 (Python 3.11+) to load this CSV, drop incomplete rows, total revenue per month and product with pivot_table, and save the table and a matplotlib bar chart; use .loc for updates, never chained assignment.”
Install pandas into your project's Python environment (Python 3.11 or newer).
pip install pandasFor Excel files, install the optional Excel extras too.
pip install "pandas[excel]"
Rules for your agent
## pandas
- Install and run pandas inside a virtual environment (for example `venv`, or a conda env from conda-forge).
- Declare the extras a feature needs in `requirements.txt` or `pyproject.toml`, e.g. `pandas[excel]`, `pandas[parquet]`, `pandas[aws]`.
- Expect an `ImportError` at call time when a method's optional dependency is missing; add the matching extra rather than catching the error.
- For large data sets, add `pandas[performance]` (numexpr, bottleneck, numba).
- For `read_html()`, install BeautifulSoup4 together with lxml or html5lib, never BeautifulSoup4 alone.
- Read xls/xlsb files with python-calamine, not the deprecated xlrd or pyxlsb.
- For `read_orc()`, install pyarrow with conda; it may fail with pyarrow from PyPI and is not compatible with Windows.
Mistakes to avoid
In pandas 3 chained assignment never changes df; in our run it left the column unchanged and raised a ChainedAssignmentError warning.
Text columns now load as the str type; in our run df["flag"].dtype == object was False.
DataFrame.append was removed in pandas 2.0; in our run it raised AttributeError.
Excel readers are optional packages and are not installed with pandas itself.
pandas 3 supports only Python 3.11 and higher.
Questions
Can it read Excel files?
Yes, after you install the Excel extras (pip install "pandas[excel]"), which bring openpyxl and related readers.
Why does my old code df["col"][mask] = value no longer change anything?
In pandas 3 every selection is a copy, so this chained assignment does nothing. Write df.loc[mask, "col"] = value.
Where did DataFrame.append go?
It was removed in pandas 2.0; use pd.concat instead.
Can pandas handle a 50 GB file on a laptop?
Not directly. It works in memory; its docs suggest loading fewer columns, smaller types or other libraries for data larger than memory.