Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

pandas

Tables of data in Python, like a spreadsheet in code.

ML and data sciencePYPI

GitHubWebsite

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/LICENSE

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

88 / 100
Gid Score, #18 overall
164M
downloads a week, pypi
50.6K
GitHub stars
268
agent projects use it
pandas: downloads per weekPyPI, pandas 161,963,855
pandas: GitHub starspandas-dev/pandas 50,610

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

136 projects, 4.5%
133 projects, 4.1%
97 projects, 4.0%
19 projects, 6.8%
16 projects, 3.4%
16 projects, 4.8%
13 projects, 2.8%
9 projects, 8.1%

Often used with

In 70.5% of its projects
In 50.0% of its projects
In 46.6% of its projects
In 41.0% of its projects
In 38.4% of its projects
In 38.1% of its projects
In 36.2% of its projects
In 35.4% of its projects

pandas in practice

Strengths

Labels line data up for you

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.

Split-apply-combine built in

Group by handles both aggregating and transforming data. Merging, joining, reshaping and pivot tables sit alongside it.

Time series tools included

The README lists date range generation, frequency conversion, moving window statistics, and date shifting and lagging.

Install only the formats you need

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

Missing extras surface as ImportError on use

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.

read_html needs more than BeautifulSoup

BeautifulSoup4 alone is not enough for <code>read_html()</code>. The docs say you must also install lxml, html5lib, or both.

read_orc() and pip-installed pyarrow

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

See all

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

See all

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

BSD-3-ClauseGid 88164M/wk

Polars

Pick Polars for larger files or when speed matters most; it is a separate DataFrame library with its own API.

DuckDB

Pick DuckDB when you would rather ask your CSV or Parquet files questions in SQL.

openpyxl

Pick openpyxl when you need to edit an Excel file itself (cells, styles, formulas) rather than analyse its data.

Compare pandas with another tool

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.”

  1. Install pandas into your project's Python environment (Python 3.11 or newer).

    pip install pandas

    From pandas.pydata.org/docs/getting_started/install.html

  2. For Excel files, install the optional Excel extras too.

    pip install "pandas[excel]"

    From pandas.pydata.org/docs/getting_started/install.html

Rules for your agent

Paste into AGENTS.md or CLAUDE.md
## 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

df["flag"][df["qty"] > 4] = "big"
df.loc[df["qty"] > 4, "flag"] = "big"

In pandas 3 chained assignment never changes df; in our run it left the column unchanged and raised a ChainedAssignmentError warning.

if df["name"].dtype == object
Use pd.api.types.is_string_dtype(df["name"]), or compare with "str"

Text columns now load as the str type; in our run df["flag"].dtype == object was False.

df = df.append(row_df)
df = pd.concat([df, row_df], ignore_index=True)

DataFrame.append was removed in pandas 2.0; in our run it raised AttributeError.

pip install pandas, then pd.read_excel("file.xlsx")
pip install "pandas[excel]" (or add openpyxl) before reading .xlsx files

Excel readers are optional packages and are not installed with pandas itself.

pip install pandas==3.1.1 on Python 3.9 or 3.10
Make a virtual environment on Python 3.11 or newer first

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.