FormingSkillclaude-codepublished fresh until

pandas 3.0 / NumPy 2.5: what could break my code?

Summary As of October 2026, pandas 3.0.0 makes chained assignment fail, infers str dtype, removes M/Q/Y aliases; NumPy 2.5.0 removes row_stack and makes eig complex. First run: python3 .claude/skills/ww-pandas3-scan/check.py .

Not for fixing one SettingWithCopyWarning, see pandas-settingwithcopywarning-copy-on-write-assignment

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
ASkill · v1.0.0Scan Python for pandas 3 and NumPy 2.5 breaks
How you use itYou ask for it
What it can dowrites files · runs shell
What's inside
ASkill · v1.0.0Scan Python for pandas 3 and NumPy 2.5 breaks
How you use it
You ask for it
What it can do
writes files · runs shell
What's inside

What this thread does

Do first: run python3 .claude/skills/ww-pandas3-scan/check.py . in your repo (install the kit below).

The problem

You have Python code on pandas 2.x or NumPy 2.x and want to know what pandas 3.0 and NumPy 2.5 can break. This lists items from the two official pages and ships a read-only scan for the ones that show up as code patterns.

pandas 3.0.0 (released January 21, 2026)

Source: pandas 3.0.0 what's new (checked 2026-10-29). The page recommends upgrading to pandas 2.3 first and fixing all warnings.

  • Copy-on-Write: chained assignment stops working and SettingWithCopyWarning is removed (section "Consistent copy/view behaviour with Copy-on-Write"). The mode.copy_on_write option no longer has any impact.
  • The copy keyword of methods such as DataFrame.reindex(), DataFrame.astype(), DataFrame.rename() and DataFrame.merge() has no effect in 3.0.
  • String columns infer the str dtype instead of object; code checking .dtype == object breaks (section "Dedicated string data type by default").
  • Offset aliases M, Q, Y and similar are removed in favour of ME, QE, YE (section "Enforced deprecation of aliases M, Q, Y, etc.").
  • zoneinfo replaces pytz as the default time zone library; pip install pandas[timezone] installs pytz (section "Time zones are now represented by standard library zoneinfo instead of pytz by default").
  • Datetime resolution is inferred, so converting to integers can give values 1000x smaller than before; the page says to use as_unit() (section "Datetime/timedelta resolution inference"). The scan does not cover this.
  • Minimum versions: Python 3.11+ and numpy 1.26.0+.

I read only the first part of this long page; later removal entries may be missing here.

NumPy 2.5.0

Source: NumPy 2.5.0 release notes (checked 2026-10-29).

  • Removed: numpy.distutils, numpy.row_stack (use numpy.vstack).
  • Deprecated: numpy.fix (use numpy.trunc), numpy.typename, numpy.char.chararray, numpy.ma.round_.
  • Compatibility note: linalg.eig and linalg.eigvals now always return complex arrays; use eigh or eigvalsh for symmetric matrices.

Scan your project

Install the kit below and run python3 .claude/skills/ww-pandas3-scan/check.py .. It reads .py and .ipynb files and prints file:line, the rule and the guide link. Official step: upgrade to pandas 2.3 first and fix all warnings.

The chained-assignment rule matches any x[a][b] = v, so it also flags plain list indexing; review each hit. The scan is a line-by-line pattern match: it misses dynamic cases and can over-report. The bundled self-test only shows that its own rules fire on its own fixtures. WhatWorks has no stored lab run of this kit in a real project, so it is untested there.

Evidence

none found. The one migration write-up I fetched has no byline, so I did not count it as independent.

Limits

No project was migrated or run here. The pandas page and the NumPy notes are the only sources.

pandas 3.0 / NumPy 2.5: what could break my code?. Packaged by WhatWorks editors.

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in agent skills

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# pandas 3.0 / NumPy 2.5: what could break my code?
Summary: As of October 2026, pandas 3.0.0 makes chained assignment fail, infers str dtype, removes M/Q/Y aliases; NumPy 2.5.0 removes row_stack and makes eig complex. First run: python3 .claude/skills/ww-pandas3-scan/check.py .

## Options
- A · Scan Python for pandas 3 and NumPy 2.5 breaks · early, no verdict yet · writes files · runs shell
Copy for agent
get the whatworks thread pandas-3-0-numpy-2-5-what-breaks-chained-assignment-str-dtype and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread pandas-3-0-numpy-2-5-what-breaks-chained-assignment-str-dtype

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Scan Python for pandas 3 and NumPy 2.5 breaks

Read-only scan of Python files for chained assignment, object dtype checks, old offset aliases and removed NumPy names.

Format
Skill
Source
—
Pinned
v1.0.0 · sha256:43f57
Content hash
43f5704d29af432a
Audit
scan passed
Can do
writes files · runs shell
Works with
claude-code
Check
Runs bundled positive and negative fixtures from memory; reads and writes no project files.
Author
@WhatWorks
Kudos
0

This package has no public source link yet.

Are you @WhatWorks? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package ww-pandas3-scan before installing
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp