Skip to content

Fix DataFrame.aggregate to preserve extension dtypes with callable functions #61816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

AdrianoCLeao
Copy link

@AdrianoCLeao AdrianoCLeao commented Jul 9, 2025

@AdrianoCLeao AdrianoCLeao marked this pull request as ready for review July 9, 2025 03:16
@AdrianoCLeao
Copy link
Author

Should I add something to the doc/source/whatsnew/vX.X.X.rst file?

return result

except Exception:
return None

Copy link
Member

@arthurlw arthurlw Jul 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: Could you make sure there are two blank lines between function and class definitions for consistency?

Running the below should fix it and other linting errors:

pre-commit run --all-files

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

@AdrianoCLeao
Copy link
Author

I'll handle the failed build checks tomorrow

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.

BUG: Dataframe.aggregate drops pyarrow backend for lambda aggregation functions
2 participants