Skip to content

TST: Add regression test for groupby.var/std arrow dtype retention - #64093

Closed
immohamedadhil wants to merge 6 commits into
pandas-dev:mainfrom
immohamedadhil:test/groupby-var-arrow-dtype-54627
Closed

TST: Add regression test for groupby.var/std arrow dtype retention#64093
immohamedadhil wants to merge 6 commits into
pandas-dev:mainfrom
immohamedadhil:test/groupby-var-arrow-dtype-54627

Conversation

@immohamedadhil

@immohamedadhil immohamedadhil commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

Implementation:

Test that int64[pyarrow] inputs correctly return float64[pyarrow] instead of falling back to NumPy float64.

Added the following tests to pandas/tests/extension/test_arrow.py:

  • test_groupby_var_returns_arrow_dtype: Verifies int64 -> float64[pyarrow] (Fixes GH#54627).
  • test_groupby_std_returns_arrow_dtype: Same for std.

Both tests follow the existing pattern in test_arrow.py

@VedantMadane

Copy link
Copy Markdown
Contributor

I already have a PR open since 16th January to close #54627 so
would you mind taking a look at it and be open to closing this?

@jbrockmendel jbrockmendel added the Needs Tests Unit test(s) needed to prevent regressions label Mar 6, 2026
@jbrockmendel

Copy link
Copy Markdown
Member

closed by #63704

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Tests Unit test(s) needed to prevent regressions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: groupby.var() does not return arrow types with arrow backed series as input.

3 participants