NumPy/object fallbacks in Arrow-backed arrays
Author: fangchenliCreated Aug 5, 2026Updated Sep 28, 2026
LabelsMaster TrackerUpstream issueArrow
ArrowExtensionArray and ArrowStringArray fall back to NumPy, object dtype, or a Python loop silently in many places. Some of those can be fixed within pandas, but some need upstream work in Arrow. It also has impacts on downstream libraries such as PySpark.
I'll update this tracker incrementally. Some of those are from preliminary investigation and will need a deeper look.
Reductions
- #69752
-
varon Arrow temporals raisesTypeError: ... 'var' may be supported by upgrading pyarrow— the error type is right (datetime64raises too), but no pyarrow version will support it, so the hint misleads - temporal
std/semtruncate the float result toward zero instead of rounding, so an exact answer can lose a whole unit:semof two values 2 days apart gives23:59:59fordate32,timestamp[s]andduration[s]
Groupby
- #63416
- #66625
- #69488
- investigate why numeric dtypes are slow compared to the Cython path. Update: Arrow isn't actually slower at aggregating (it's faster), but the only public entry point re-hashes the group keys pandas has already factorized, and that duplicate hash costs more than the aggregation saves.
- #69717
Indexing
-
time64[ns]index operations truncate to microseconds — three distinct nanosecond values giveis_unique == False, andget_locreturnsslice(0, 3)instead of2. PyArrow correctly raises rather than lose precision;ArrowExtensionArray.to_numpyroutes around it vianp.array(list(data)), which isto_pylistsemantics.unique()/drop_duplicates()are correct — they stay in PyArrow. Fix direction: givetimetypes the samei8routing in_get_engine_target/_get_join_targetthattimestamp/durationalready have. Already being routed around in-tree: #66498 takes fromselfrather than the merge output specifically because "the join target round-trips through NumPy, lossy fortime64[ns]". -
bool[pyarrow]indexes silently useObjectEngine.indexes/base.py:255registersMaskedBoolEnginefor it, but the registration is unreachable:_get_engine_targetguards onis_numeric_dtype, andArrowDtype._is_numeric(dtypes.py:2461) is integer|floating|decimal only, carrying a standing# TODO: pa.types.is_boolean?atdtypes.py:2465. One predicate.
Window
- Arrow temporals bypass the guard that stops NumPy temporals in
rolling._prep_valuesopens withif needs_i8_conversion(values.dtype): raise NotImplementedError(window/rolling.py:344-348), but that predicate isFalsefor every ArrowDtype temporal. Sodatetime64[ns].rolling(2).max()correctly raisesDataError, whiletimestamp[s][pyarrow].rolling(2).max()returns[nan, 86400.0, 172800.0]— raw epoch seconds, timestamp identity gone, no warning. Same forduration.
String
Method Resolution Order Shadowing
- #66335
- #66339
- #66431
- split
- rsplit
- extract: rejects unnamed groups (
flagsand compiled patterns were fixed in #66792)
Missing Arrow Path
- #63602
Arrow
Missing Kernels
- modulo: https://github.com/apache/arrow/issues/28497, https://github.com/apache/arrow/issues/46901
- floordiv: https://github.com/apache/arrow/issues/39386
- No
cumulative_sum/_min/_maxfordecimal128— the only reduction family decimal lacks - No hash aggregates for
dictionaryorduration— onlycountworks, so both take a per-group Python loop in pandas - No
hash_sumforstring—groupby.sum()on string falls to a Python loop (29.7 ms vs 2.7 ms forminat N=200k) - No
utf8_casefold—utf8_loweris not a substitute ("Straße"→straße, Python givesstrasse) - No per-character translate kernel —
.str.translateis a Python loop at object-dtype speed - No all-matches regex —
extract_regexreturns the first match only, so.str.findallhas nothing to build on - No
hash_sum/hash_mean/hash_stddevfordate32/time64— min/max/count only, so those aggregations can't be routed even though min/max can - No exact
median— onlyapproximate_median(t-digest), which is not exact on any distribution tested: 4.0e-4 relative error on uniform, 1.5e-2 on lognormal(σ=3), 7.6e-2 on low-cardinality integers. It cannot substitute for an exact median. - No temporal
quantile(timestamp/duration/date32/time64) — apache/arrow#33769 closed 2023-01-26 with no open successor - No
rank/index_infordictionary, andlistadditionally lacksunique/sort_indices— noteuniqueandsort_indicesdo work fordictionary. Of 37 probed kernels,dictionaryis missing 23 andlist30. -
replace_with_maskmissing fordurationanddictionary— makes.where()/.mask()rebuild through object. apache/arrow#29558 and #48918 are open but cover list/map/struct only; neither mentions duration or dictionary
Bug
-
pc.utf8_normalizeacceptsNFC/NFKCbut never composes — returns decomposed output -
floor_temporal/ceil_temporal/round_temporalwrap at ±2³¹ days on the value, not just the multiple — ontimestamp[s], 2³¹+5 days floors to a negative timestamp and 2³²+5 days floors to 432,000 s. apache/arrow#50675 guarded the multiple; it merged 2026-07-31, after pyarrow 25.0.0 (2026-07-10), sodurationis not yet accepted by these kernels at all — it will inherit the value-side wrap once that ships.
Missing API
- No way to invoke hash aggregates with precomputed group ids: all 24
hash_aggregatekernels already take a group-id argument, butcall_functionrejects every one of them (Direct execution of HASH_AGGREGATE functions), and both public entry points,Table.group_by(keys)and Acero'sAggregateNodeOptions(aggregates, keys=None), take key columns rather than ids. Arrow isn't actually slower at aggregating (it's faster), but re-hashing keys the caller has already factorized costs more than the aggregation saves. At N=4M/G=1k,group_by().aggregate([])(hash only) costs 4.0 ms against 0.8 ms for the aggregation itself — the re-hash is ~83% of the call. - No zip/interleave: building a
list/fixed_size_listof width k from k equal-length arrays. Of 306 compute functions none does this, andmake_structhas no struct→list counterpart. First hit was.str.partition(expand=True), worked around pandas-side in #63602.
Source: pandas-dev/pandas