Skip to content

Pandas 3.1 implements kurtosis for pyarrow dtypes - #12710

Merged
crusaderky merged 2 commits into
dask:mainfrom
crusaderky:fix/pandas-arrow-kurtosis-xfail
Nov 12, 2026
Merged

crusaderky merged 2 commits into
dask:mainfrom
crusaderky:fix/pandas-arrow-kurtosis-xfail

Conversation

@crusaderky

@crusaderky crusaderky commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Pandas 3.1 implemented kurt() on ArrowExtensionArray, so Series.kurtosis() and DataFrame.kurtosis() now work for int64[pyarrow] / float64[pyarrow].

pandas 3.1 implements `kurt()` on `ArrowExtensionArray`, so
`Series.kurtosis()`/`DataFrame.kurtosis()` now work for pyarrow dtypes.
The unconditional strict xfail turned into an XPASS(strict) failure.

Guard the xfail with PANDAS_GE_310, mirroring the neighbouring `skew`
guard. Verified by running the test against pandas 3.0.6 (still raises
TypeError -> xfail) and pandas 3.1.0/3.1.1 (passes).
@github-actions

Copy link
Copy Markdown
Contributor

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

     25 files  ±0       25 suites  ±0   6h 20m 36s ⏱️ - 32m 2s
 19 914 tests ±0   18 481 ✅ +1   1 433 💤 ±0  0 ❌  - 1 
379 353 runs  ±0  332 083 ✅  - 1  47 270 💤 +2  0 ❌  - 1 

Results for commit 7b2dded. ± Comparison against base commit b4cc5c5.

@crusaderky crusaderky changed the title [unsupervised AI] pandas implements kurtosis for pyarrow dtypes, un-xfail on new versions Pandas 3.1 implements kurtosis for pyarrow dtypes Nov 12, 2026
@crusaderky
crusaderky marked this pull request as ready for review November 12, 2026 15:08
@crusaderky
crusaderky merged commit 7615b86 into dask:main Nov 12, 2026
31 of 34 checks passed
@crusaderky
crusaderky deleted the fix/pandas-arrow-kurtosis-xfail branch November 12, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant