Connect any database. Ask in plain English.

Try free
← Blog

Pandas 3: What Changed From 2.x, 19 Breaks Run Side by Side, and How to Fix Each (2026)

pandas 3.0 came out on 21 January 2026 and 3.1.2 is the latest. We ran the same scripts on pandas 2.3.3 and 3.1.2: chained assignment stopped working, text columns became str instead of object, dates parse to microseconds, and six old APIs now raise. Unique text took 19 MB instead of 60 MB, and str.len ran 12 to 17 times faster with PyArrow.

Fastero Dev TeamFastero Dev Team2026-12-03

We read the pandas 3.0 and 3.1 release notes, the migration guide and the proposals behind them (PDEPs 7, 8, 14 and 17), then ran the same scripts in two virtual environments on 3 December 2026: pandas 2.3.3, the last 2.x release, and pandas 3.1.2, the latest 3.x, plus 3.1.2 without PyArrow. Everything ran on Python 3.14.3 on Windows 11, and the copy and warning checks ran again on Python 3.11.18 in a container. The data is the invented sample of 4,734 orders every Fastero account starts with, and for memory and speed, 1 million invented orders made from it.

The short answer: pandas 3.0.0 was released on 21 January 2026, and 3.1.2 (30 November 2026) is the latest. It needs Python 3.11 or later, and NumPy 2.0.2 or later from 3.1. Three changes break most code. Copy-on-Write is always on, so chained assignment such as df["col"][mask] = 0 silently changes nothing. Text columns load as a new str dtype instead of object, with NaN for missing values, stored in PyArrow when it's installed. And dates parse to microseconds, so astype("int64") returns numbers 1,000 times smaller. In our runs, six more old APIs raised errors. Upgrade to 2.3.3 first and clear its FutureWarnings. Checked 3 December 2026.

Fastero

Connect your database. Ask questions. Get dashboards.

Postgres, BigQuery, Snowflake, and 10+ sources — live-connected, AI-powered, no dashboard builder learning curve.

Try free →

Pandas 2.3 vs 3.0 vs 3.1 at a glance

From the pandas release notes and PyPI, read 3 December 2026:

pandas 2.3 pandas 3.0 pandas 3.1
First release 4 June 2025 21 January 2026 22 October 2026
Latest patch 2.3.3, 29 September 2025 3.0.6, 17 September 2026 3.1.2, 30 November 2026
Python 3.9 or later 3.11 or later 3.11 or later
NumPy 1.22.4 or later (1.26.0 on Python 3.12+) 1.26.0 or later (2.3.3 on Python 3.14) 2.0.2 or later (2.3.3 on Python 3.14)
Copy-on-Write Off; opt in with True or "warn" Always on Always on
Text columns object str str
Dates parsed from text datetime64[ns] datetime64[us] datetime64[us]
Numbers with unit="s" ns s us
pytz and PyArrow pytz required, PyArrow optional Both optional Both optional

Release candidates of 3.0 reached PyPI from 3 December 2025. As of today, 2.3.3 is still the newest 2.x on PyPI. The 3.0 notes give the order to upgrade in: "It is recommended to first upgrade to pandas 2.3 and to ensure your code is working without warnings, before upgrading to pandas 3.0."

What changed in pandas 3.0

The big items, each tested below:

  • Copy-on-Write (PDEP-7) is the only mode. Every subset or derived DataFrame behaves as a copy, chained assignment never works, and SettingWithCopyWarning is gone.
  • A dedicated string dtype (PDEP-14): text is inferred as str, "backed by PyArrow under the hood, if installed, otherwise falling back to being backed by NumPy object-dtype".
  • Datetime resolution inference: strings and Python datetimes become microseconds, not nanoseconds.
  • Time zones come from the standard library's zoneinfo instead of pytz, and pytz is no longer installed with pandas.
  • Removals: everything deprecated during 2.x, from applymap to the M, Q and Y frequency aliases.

Smaller changes with real impact: grouping by a categorical column now defaults to observed=True (more in our groupby guide), integer keys on a Series are always labels, Day offsets keep the clock time across daylight saving changes, to_excel writes no styling, and read_json, read_html, read_xml and read_excel no longer accept raw text, which needs wrapping in StringIO. New: pd.col("revenue") expressions in assign and loc, and left_anti and right_anti joins in merge.

Chained assignment no longer works in pandas 3

This script ran in both versions, on the sample CSV:

import pandas as pd
 
df = pd.read_csv("sample-sales.csv")  # 4,734 invented orders
north = df["region"] == "North"
 
# 1. Chained assignment: two indexing steps, then "="
df["revenue"][north] = 0
print("1. North revenue after chained assignment:", df.loc[north, "revenue"].sum())
 
# 2. An inplace method called on a selected column
df["channel"].replace("Partner", "Reseller", inplace=True)
print("2. Rows still 'Partner':", (df["channel"] == "Partner").sum())
 
# 3. The fixes: one .loc call, and reassigning the column
df.loc[north, "revenue"] = 0
df["channel"] = df["channel"].replace("Partner", "Reseller")
print("3. After the fixes:", df.loc[north, "revenue"].sum(),
      (df["channel"] == "Partner").sum())

Its output, with each warning cut to its first line:

# pandas 2.3.3, Python 3.11.18
FutureWarning: ChainedAssignmentError: behaviour will change in pandas 3.0!
SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame
FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through
  chained assignment using an inplace method.
1. North revenue after chained assignment: 0.0
2. Rows still 'Partner': 0
3. After the fixes: 0.0 0
 
# pandas 3.1.2, Python 3.11.18 and 3.14.3
ChainedAssignmentError: A value is being set on a copy of a DataFrame or Series through
  chained assignment.
ChainedAssignmentError: A value is being set on a copy of a DataFrame or Series through
  chained assignment using an inplace method.
1. North revenue after chained assignment: 417482.48
2. Rows still 'Partner': 973
3. After the fixes: 0.0 0

In pandas 3 both lines print a ChainedAssignmentError warning, not an error, and leave df as it was: $417,482.48 of North revenue and 973 Partner rows survive. A scheduled job that hides warnings carries on with the wrong numbers. The fix is always to change the DataFrame in one step: df.loc[mask, "col"] = value, or reassign the column, or call the method on the frame, as in df.fillna({"col": 0}, inplace=True).

On Python 3.14, pandas 2.3.3 doesn't warn you. The same script on Python 3.14.3 printed only the SettingWithCopyWarning for the first line and nothing at all for the inplace call, though both still changed df. That's deliberate: a pandas pull request titled "CoW: disable chained assignment detection for Python 3.14" was backported to 2.3.x. pandas 3.1.2 detects both on 3.14. Run your pandas 2.3 checks on Python 3.11 to 3.13, or use the warn mode in the checklist, which caught all three on 3.14.

Views vs copies: changes no longer propagate

In pandas 2, a column taken out of a DataFrame was often a view, so changing it changed the DataFrame too. The migration guide is blunt: "Copy-on-Write is the default and only mode in pandas 3.0." Nothing you do to a derived object reaches the original:

import pandas as pd
 
df = pd.read_csv("sample-sales.csv")
qty = df["quantity"]       # a column taken out as a Series
qty.iloc[0] = 999          # change the Series...
print("df.loc[0, 'quantity']:", df.loc[0, "quantity"])  # ...did df change too?
 
arr = df["unit_price"].to_numpy()
print("to_numpy() writeable:", arr.flags.writeable)
 
north = df[df["region"] == "North"]       # a filtered subset
north["revenue"] = north["revenue"] * 1.1  # the classic SettingWithCopyWarning
print("subset changed, df unchanged:",
      round(north["revenue"].sum() / df.loc[df["region"] == "North", "revenue"].sum(), 2))
# pandas 2.3.3 (also printed two SettingWithCopyWarnings)
df.loc[0, 'quantity']: 999
to_numpy() writeable: True
subset changed, df unchanged: 1.1
 
# pandas 3.1.2 (no warnings)
df.loc[0, 'quantity']: 4
to_numpy() writeable: False
subset changed, df unchanged: 1.1

Code that relied on a Series writing through to its DataFrame silently stops updating it. Arrays from to_numpy() that share memory with a DataFrame are read-only, so writing into one raises a ValueError; call .copy() on the array first. And editing a filtered subset now works without a warning, so defensive .copy() calls added to silence SettingWithCopyWarning can go. Under the hood pandas copies lazily, which is why renaming a large DataFrame cost no memory in our notebook memory tests.

The new str dtype: how it differs from object

This script prints what changed for text, on the same CSV:

import pandas as pd
 
df = pd.read_csv("sample-sales.csv")
print(df.dtypes.to_string())
print("dtype == object:", df["region"].dtype == object)
print("is_string_dtype:", pd.api.types.is_string_dtype(df["region"]))
 
s = pd.Series(["Team plan", None, "Starter plan"])
print("missing value:", repr(s[1]), "| is None:", s[1] is None, "| isna:", s.isna().tolist())
print("str.contains:", s.str.contains("plan").tolist(), s.str.contains("plan").dtype)
print("str.len:", s.str.len().tolist(), s.str.len().dtype)
print("astype(str):", pd.Series([1.5, None]).astype(str).tolist())
try:
    s[1] = 42
    print("s[1] = 42:", s.tolist(), s.dtype)
except TypeError as e:
    print("s[1] = 42: TypeError:", e)
# pandas 2.3.3 (numeric dtypes left out)
order_date     object
region         object
channel        object
...
dtype == object: True
is_string_dtype: True
missing value: None | is None: True | isna: [False, True, False]
str.contains: [True, None, True] object
str.len: [9.0, nan, 12.0] float64
astype(str): ['1.5', 'nan']
s[1] = 42: ['Team plan', 42, 'Starter plan'] object
 
# pandas 3.1.2, with or without PyArrow (numeric dtypes left out)
order_date        str
region            str
channel           str
...
dtype == object: False
is_string_dtype: True
missing value: nan | is None: False | isna: [False, True, False]
str.contains: [True, False, True] bool
str.len: [9.0, nan, 12.0] float64
astype(str): ['1.5', nan]
s[1] = 42: TypeError: Invalid value '42' for dtype 'str'. Value should be a string
  or missing value, got 'int' instead.

What that means for your code:

  • Dtype checks fail quietly. dtype == object is now False for text. pd.api.types.is_string_dtype() gives True in both versions. select_dtypes(include="object") still picks up text in 3.1.2, but with a Pandas4Warning saying that will stop; the migration guide suggests include=["object", "string"] for code that runs on both.
  • Missing text is NaN, never None. isna() is unchanged, but x is None checks are now always False. Use pd.isna(x).
  • .str methods return clean booleans. str.contains on a missing value gave None and an object result in 2.3.3; in 3.1.2 it gives False and a bool result, so filtering with it no longer needs na=False. str.len was the same in both.
  • astype(str) keeps missing values missing instead of writing the string nan. Use .map(str) for the old behavior.
  • A text column only holds text. Writing a number into it raises TypeError; convert with .astype("object") first if you need mixed values.
  • .values returns a pandas array, not a NumPy one, for text. Use .to_numpy() when you need NumPy.

Does pandas 3 need PyArrow?

No. pip install pandas doesn't install PyArrow, and without it str columns are stored as Python objects. Our run without PyArrow printed the same results for every check above; only the dtype's repr showed storage='python'. PDEP-10 had planned to make PyArrow required in 3.0; its page now says that part has been delayed until after 3.0. The pandas text guide says that without PyArrow, "the performance of StringDtype is about the same as that of object." So install it (pip install pandas pyarrow, or the pandas[pyarrow] extra) if you want the gains below.

How much memory does the str dtype save?

We measured one text column at a time, 1 million rows, counting each Python string object once, because read_csv reuses the same object for repeated values and memory_usage(deep=True) counts every row (our out-of-memory guide shows how far that overcounts):

Grouped bar chart of the memory of one text column with 1 million rows: unique 11-character order IDs took 60.0 MB as object in pandas 2.3.3 and 19.0 MB as str in pandas 3.1.2; emails with 100,000 distinct values took 57.4 vs 34.0 MB from read_csv and 75.0 vs 34.0 MB from read_sql; product names with 13 distinct values took 8.0 vs 19.6 MB from read_csv and 60.6 vs 19.6 MB from read_sql

Memory of one text column, 1 million invented rows, measured 3 December 2026 with pandas 2.3.3 and 3.1.2 and pyarrow 26.0.1.

Unique values gain the most: 60.0 MB fell to 19.0 MB. Low-cardinality text read from a CSV went the other way, 8.0 MB to 19.6 MB, because 1 million pointers to 13 shared strings are cheaper than every value's bytes. Loaded with read_sql from SQLite, which made a new string object for every row, the same column took 60.6 MB as object. As a category it took 1.0 MB in both versions, still the dtype for repeated labels. Across all 12 columns of the file, the DataFrame grew the process by 222 MB in pandas 2.3.3 and 200 MB in 3.1.2.

Is pandas 3 faster on text?

We timed common operations on the 1-million-row file, median of 7 runs each, twice:

Dot plot of how many times as fast pandas 3.1.2 with PyArrow was than pandas 2.3.3 on 1 million rows, in two runs: str.len 12.6x and 16.6x, read_csv 12.0x and 16.9x, str.startswith 10.2x and 16.3x, str.replace 7.5x and 4.4x, read_csv on one thread 4.6x and 4.8x, str.contains 2.7x and 3.5x, equality with a value 3.2x and 0.9x, value_counts 2.4x and 1.6x, str.upper 1.3x in both, sort_values 1.1x and 0.8x, groupby 1.1x and 0.8x, str.split 1.0x and 0.5x

How many times as fast pandas 3.1.2 with PyArrow was as pandas 2.3.3, two runs on 3 December 2026 on a laptop shared with other jobs.

Operation, 1M rows pandas 2.3.3 3.1.2 with PyArrow 3.1.2 without PyArrow
read_csv, whole file 3,099-3,525 ms 184-293 ms 1,637-2,329 ms
str.len 354-466 ms 28 ms 84-98 ms
str.startswith 229-349 ms 21-22 ms 157-253 ms
str.replace 621-864 ms 116-141 ms 518-580 ms
str.split 1,386-1,721 ms 1,767-2,725 ms 1,573-1,671 ms
groupby on text 554-683 ms 621-705 ms 823-867 ms

Simple string methods ran 2.7 to 16.6 times faster with PyArrow. Operations that build Python objects or sort, such as split, groupby and sort_values, were no faster and sometimes slower, and our two runs of the equality test differed by more than 3 times, so treat single numbers with care. The read_csv gain is partly the 3.1 parser: the release notes say "A single-threaded read is typically two to three times faster than in 3.0", and local files of 5 MB or more are now read on up to 6 threads. Our large CSV guide times more ways to read big files.

Datetime resolution: microseconds, not nanoseconds

import pandas as pd
 
df = pd.read_csv("sample-sales.csv", parse_dates=["order_date"])
first = df["order_date"].iloc[:1]
print("dtype:", first.dtype)
print("astype('int64'):", first.astype("int64").iloc[0])
print("as_unit('s') then int64:", first.dt.as_unit("s").astype("int64").iloc[0])
print("Timestamp unit:", pd.Timestamp("2024-11-01 09:30").unit)
print("tz type:", type(pd.Timestamp("2024-11-01", tz="US/Eastern").tz).__name__)
# pandas 2.3.3                         # pandas 3.1.2
dtype: datetime64[ns]                  dtype: datetime64[us]
astype('int64'): 1730419200000000000   astype('int64'): 1730419200000000
as_unit('s') then int64: 1730419200    as_unit('s') then int64: 1730419200
Timestamp unit: s                      Timestamp unit: us
tz type: US/Eastern                    tz type: ZoneInfo

(Two separate runs, put side by side.) Most code won't notice the unit. The release notes name the exception: "One big exception is converting to integers, which will give integers 1000x smaller." Epoch numbers you send to an API or store in a database will be off by a factor of 1,000 without an error, so set the unit before casting, as the third line does. In 3.0, numbers converted with unit="s" kept second resolution; 3.1 changed them to microseconds too. Time zones are now zoneinfo objects; if your code imports pytz, install it yourself or use pip install "pandas[timezone]".

Connect any database. Ask in plain English.

Start free →

Removed APIs and renamed arguments

pandas 3.0 removed what 2.x deprecated. This script tries eight of the most common in both versions:

import io, warnings
import pandas as pd
 
df = pd.read_csv("sample-sales.csv", parse_dates=["order_date"])
daily = df.set_index("order_date")["revenue"]
by_region = df.groupby("region")["revenue"].sum()  # index: East, North, South, West
 
def attempt(label, fn):
    with warnings.catch_warnings(record=True) as caught:
        warnings.simplefilter("always")
        try:
            fn()
            result = "works"
        except Exception as e:
            result = f"{type(e).__name__}: {str(e).splitlines()[0][:52]}"
    kinds = sorted({w.category.__name__ for w in caught
                    if w.category is FutureWarning or w.category.__module__.startswith("pandas")})
    print(f"{label:17} {result}" + (f" [{', '.join(kinds)}]" if kinds else ""))
 
attempt('resample("M")', lambda: daily.resample("M").sum())
attempt('resample("ME")', lambda: daily.resample("ME").sum())
attempt("by_region[0]", lambda: by_region[0])
attempt("df.applymap", lambda: df[["quantity"]].applymap(float))
attempt("fillna(method=)", lambda: df.fillna(method="ffill"))
attempt('errors="ignore"', lambda: pd.to_numeric(df["region"], errors="ignore"))
attempt("delim_whitespace", lambda: pd.read_csv(io.StringIO("a b\n1 2"), delim_whitespace=True))
attempt("inplace=True", lambda: df.copy().reset_index(inplace=True))
# pandas 2.3.3
resample("M")     works [FutureWarning]
resample("ME")    works
by_region[0]      works [FutureWarning]
df.applymap       works [FutureWarning]
fillna(method=)   works [FutureWarning]
errors="ignore"   works [FutureWarning]
delim_whitespace  works [FutureWarning]
inplace=True      works
 
# pandas 3.1.2
resample("M")     ValueError: Invalid frequency: M. Failed to parse with error mes
resample("ME")    works
by_region[0]      KeyError: 0
df.applymap       AttributeError: 'DataFrame' object has no attribute 'applymap'
fillna(method=)   TypeError: NDFrame.fillna() got an unexpected keyword argument
errors="ignore"   ValueError: invalid error value specified
delim_whitespace  TypeError: read_csv() got an unexpected keyword argument 'delim
inplace=True      works [Pandas4Warning]

Each of the six errors was a FutureWarning in 2.3.3 first, which is why upgrading through 2.3 pays off. The by_region[0] case is easy to miss: on a Series with text labels, [0] used to mean the first row and now looks up a label called 0. The full error for M tells you to use ME instead. Period aliases are different: to_period("M") still works in 3.1.2.

What changed in pandas 3.1

pandas 3.1.0 (22 October 2026) is a minor release, but it changes more than most:

  • NumPy 2 is required: NumPy 2.0.2 or later.
  • inplace is deprecated (PDEP-8) on drop, rename, rename_axis, reset_index, set_index, dropna, drop_duplicates, sort_values, sort_index, eval and query, with a Pandas4Warning, as in the last line above. Write df = df.reset_index(). fillna and replace keep the keyword.
  • Numbers converted with unit= now give microseconds, not the input unit.
  • A faster read_csv, read in parallel for large local files; set mode.max_threads to 1 inside apps that already run in parallel.
  • Regex .str methods match Python's re again: 3.0's PyArrow strings matched \w, \d and \s only against ASCII; 3.1 fixed that.
  • New: DataFrame.select(), and filter() with a boolean mask or pd.col expression.
  • read_csv(dtype="category") now infers numeric categories, so zero-padded codes lose their leading zeros. Read them as str first.

Warnings changed too. Under PDEP-17, deprecations for pandas 4.0 are Pandas4Warning, a DeprecationWarning until the last 3.x release, so Python hides them unless your own __main__ code triggers them; run with -W default::DeprecationWarning to see them all.

How to migrate to pandas 3: a checklist

  1. Upgrade to pandas 2.3.3 first, on Python 3.11, 3.12 or 3.13 so the chained-assignment warnings fire. Pin it: pip install "pandas==2.3.3".
  2. Make FutureWarnings fail your tests: python -W error::FutureWarning -m pytest (not run here). Each one is a pandas 3 break, with the fix in the message.
  3. Turn on both pandas 3 previews at the top of a notebook or test file. Ours, run with pandas 2.3.3 on Python 3.14.3:
import warnings
import pandas as pd
 
pd.options.mode.copy_on_write = "warn"   # pandas 2.2 and 2.3 only
pd.options.future.infer_string = True    # pandas 2.3: the 3.0 string dtype
warnings.simplefilter("default")         # show each warning once per line
 
df = pd.read_csv("sample-sales.csv")
print("region dtype:", df["region"].dtype)
 
df["revenue"][df["region"] == "North"] = 0      # chained assignment
df["channel"].replace("Partner", "Reseller", inplace=True)
qty = df["quantity"]
qty.iloc[0] = 999                               # writes through a view in 2.x
# paths shortened, warning bodies cut to their first line
s6_prepare.py:11: FutureWarning: Setting a value on a view: behaviour will change in pandas 3.0.
s6_prepare.py:12: FutureWarning: Setting a value on a view: behaviour will change in pandas 3.0.
s6_prepare.py:14: FutureWarning: Setting a value on a view: behaviour will change in pandas 3.0.
region dtype: str

The pandas docs warn that warn mode also flags cases that don't matter; clear the ones you can.

  1. Search for patterns warnings can't catch: dtype checks against object, x is None on text, astype("int64") on dates, and pytz imports. On our scripts folder, this caught both chained assignments in the first script:
grep -rnE '\]\[[^]]+\] *=[^=]|inplace=True|applymap|fillna\(method|errors="ignore"|== *object' --include=*.py .
./s1_chained.py:7:df["revenue"][north] = 0
./s1_chained.py:11:df["channel"].replace("Partner", "Reseller", inplace=True)
./s3_strings.py:5:print("dtype == object:", df["region"].dtype == object)
./s5_removed.py:23:attempt("df.applymap", lambda: df[["quantity"]].applymap(float))

(Output trimmed to 4 of its 12 lines.) It missed the chained assignment in the warn-mode script above, df["revenue"][df["region"] == "North"] = 0, because the pattern stops at a bracket inside the brackets, so treat it as a first pass.

  1. Install pandas 3 in a fresh environment with PyArrow, pip install "pandas==3.1.2" pyarrow, and rerun everything.
  2. Fix what breaks:
In 2.x In 3.x Fix
df["col"][mask] = v No change, ChainedAssignmentError df.loc[mask, "col"] = v
df["col"].fillna(0, inplace=True) No change, warning df["col"] = df["col"].fillna(0)
Editing a Series taken from df df unchanged Edit df with .loc
Writing into to_numpy() ValueError: read-only .to_numpy().copy()
dtype == object for text False pd.api.types.is_string_dtype()
x is None for missing text False pd.isna(x)
astype(str) writing nan NaN kept .map(str)
Numbers into a text column TypeError .astype("object") first
dates.astype("int64") 1,000 times smaller .dt.as_unit("ns") first
resample("M"), "H", "T" ValueError "ME", "h", "min"
s[0] on text labels KeyError s.iloc[0]
df.applymap(f) AttributeError df.map(f)
fillna(method="ffill") TypeError ffill()
errors="ignore" ValueError try/except
delim_whitespace=True TypeError sep=r"\s+"
date_parser= in read_csv Removed date_format=
read_gbq, to_gbq Removed the pandas-gbq package

If you can't upgrade yet, pin pandas<3 in your requirements: without a pin, the next fresh install gets 3.1.2, and it fails only at the lines above. For whether to move off pandas instead, see Polars vs pandas; our pandas cheat sheet uses pandas 3 syntax.

Pandas 3 in a Fastero notebook

Fastero is an AI and data platform where people and AI agents work together on a team's data. Its notebooks run Python 3.11 with pandas, DuckDB, SQLAlchemy, seaborn and plotly preinstalled, on a notebook server nobody has to run. Python 3.11 is the oldest version pandas 3 supports, so either major version can run there. We don't promise which pandas the image has: print pd.__version__ first, and if your code needs a particular version, put %pip install "pandas==2.3.3" (or 3.1.2) in the first cell and restart the kernel. That install lasts for the session, so keep the line in the notebook.

Every new account has an invented sales table of the same 4,734 orders used in this post. A SQL cell with SELECT * FROM sales, or a query on your own Postgres, MySQL or SQL Server connection, lands in Python as a pandas DataFrame, so check df.dtypes before comparing text columns with object. The standard machine gives a notebook 1 CPU and 2 GB; our 1-million-row frame grew Python by 200 to 222 MB. The Free plan has no end date and includes 6 hours of notebook compute a day, and a notebook can run on a cron schedule with no browser open. Colleagues who only read results sign in for free. If you need an environment that stays pinned between sessions, a local virtual environment or a Docker image is the better place for it.

A notebook in Fastero's editor: a pandas cell builds a DataFrame of twelve invented solar sites and prints output against forecast, with View as App and Promote to App above it

A pandas notebook in Fastero, in a demo workspace, on inline invented data.

FAQ

When was pandas 3.0 released?

pandas 3.0.0 was released on 21 January 2026, after release candidates from 3 December 2025. Six 3.0.x bug-fix releases followed, the last on 17 September 2026. pandas 3.1.0 came out on 22 October 2026, and 3.1.2 on 30 November 2026 is the latest.

Does pandas 3 require PyArrow?

No. Without PyArrow, the new str dtype is stored as Python objects and behaved the same in our tests, with memory and speed close to the old object columns. With PyArrow installed, it's stored in Arrow: in our tests unique text took about a third of the memory, and simple string methods ran 2.7 to 16.6 times faster.

What Python and NumPy versions does pandas 3 need?

Python 3.11 or later for every 3.x release. pandas 3.0 accepts NumPy 1.26.0 or later, and pandas 3.1 needs NumPy 2.0.2 or later; on Python 3.14 both need NumPy 2.3.3. pandas 2.3.3 still installs on Python 3.9 and 3.10.

Why did SettingWithCopyWarning disappear in pandas 3?

Because Copy-on-Write made its question moot: every subset behaves as a copy, so changing it never touches the original. What replaced it is ChainedAssignmentError, a warning printed when you assign through two indexing steps such as df["a"][mask] = 1. That assignment no longer does anything; use df.loc[mask, "a"] = 1.

How do I stay on pandas 2?

Pin it: pip install "pandas<3" installs 2.3.3, the newest 2.x release on PyPI as of 3 December 2026. Add the same pin to requirements.txt or pyproject.toml. Use the time to clear the FutureWarnings 2.3.3 prints, since each one is a line pandas 3 will break.

Why are my timestamps 1,000 times smaller in pandas 3?

Dates parsed from text are now datetime64[us], microseconds, instead of nanoseconds, so astype("int64") counts microseconds. Call .dt.as_unit("ns") before casting if downstream code expects nanoseconds, or .dt.as_unit("s") for Unix seconds.

Sources

Read on 3 December 2026. Hands-on: pandas 2.3.3 and 3.1.2, pyarrow 26.0.1, NumPy 2.5.5 and psutil 7.2.2 on Python 3.14.3, Windows 11 (Intel Core i7-11800H, 64 GB); the copy and warning checks also on Python 3.11.18 with NumPy 2.4.6 in a python:3.11-slim container.


Try Fastero free: run pandas notebooks on your team's data, with SQL cells that hand you a DataFrame and the invented sales sample to test your upgrade on. No credit card required.

Ready to try it yourself?

Connect your database, ask questions in plain English, and get live dashboards — in under 2 minutes. No credit card required.

Follow Fastero on LinkedIn for new articles and examples.

Keep reading

Related articles

2026-12-03

Pandas Cheat Sheet: 36 Snippets Run on pandas 3.1.2, and the apply That Was 1,600x Slower (2026)

The pandas you keep looking up, run on pandas 3.1.2 against 4,734 invented orders with the output it printed: reading and writing, loc, iloc and query, groupby with named aggregation, pivot_table, merge, dates, strings, missing values and the code pandas 3 broke. A row-wise apply took 7.9 seconds on 473,400 rows where np.where took 4.8 ms, and pandas 3's string dtype held the sample in 618 KB instead of 1,755 KB.

pandaspythondata-analysis

2026-12-03

Iris Dataset: 150 Flowers, 5 Ways to Load It, and the 2 Rows That Differ Between Copies (2026)

The iris dataset is 150 flowers, 50 from each of three species, with four measurements in centimeters. We downloaded six copies and compared them with Fisher's 1936 table: UCI's iris.data and Kaggle's Iris Species differ in rows 35 and 38, while scikit-learn, seaborn, R and UCI's bezdekIris.data match it. Loading code for pandas, scikit-learn, seaborn, DuckDB and R, summary statistics, and baseline models that score 94% to 98% in cross-validation.

datasetsmachine-learningscikit-learn

2026-12-02

Python MemoryError: What "Unable to Allocate X GiB" Means, the Arithmetic, and 7 Fixes (2026)

NumPy's "Unable to allocate" message is the size of one array: rows × columns × bytes per value, so a 100,000 × 100,000 float64 array asks for 74.5 GiB. Why the error appears with RAM free (32-bit Python, the Windows commit limit, container caps, Linux overcommit), reproduced safely on a 64 GB laptop and in a 512 MB container, and the fixes that worked.

pythonnumpymemory