Skip to content

BUG: Fix DataFrame reduction to preserve NaN vs <NA> in mixed dtypes (GH#62024) #62027

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

Closed

Conversation

Aniketsy
Copy link

@Aniketsy Aniketsy commented Aug 2, 2025

(GH#62024)

This PR fixes a bug in (DataFrame._reduce) where reductions on (DataFrames) with mixed dtypes (e.g., float64 and nullable integer Int64) would incorrectly upcast all results to use pd.NA and the Float64 dtype if any column was a pandas extension type.

Please let me know if my approach or fix needs any improvements . I’m open to feedback and happy to make changes based on suggestions.
Thankyou!

@jbrockmendel
Copy link
Member

This is not the correct approach. Please look for issues with the Good First Issue label.

@Aniketsy
Copy link
Author

Aniketsy commented Aug 2, 2025

Thankyou for feedback . I will look for good first issues

@Aniketsy Aniketsy closed this Aug 2, 2025
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.

2 participants