-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: DataFrame with Int64 columns casts to float64 with .max()/.min() #34210
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
Changes from 2 commits
9728d81
7765bac
c58e85d
af366b8
4a14032
e4e6c8e
9b5f41c
e704f51
60ab03a
7b18d89
e850108
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8419,7 +8419,9 @@ def _get_data(axis_matters): | |
raise NotImplementedError(msg) | ||
return data | ||
|
||
if numeric_only is not None and axis in [0, 1]: | ||
if ( | ||
self._is_homogeneous_type and self._mgr.any_extension_types and axis == 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we really need all of these conditions? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no I don't think so, as this is hiding some bugs (or inconsistencies)
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will need to fix #21020 first |
||
) or (numeric_only is not None and axis in [0, 1]): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the axis in [0, 1] is superfluous There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. test_any_all_np_func passes axis=None for reduction along both axes. |
||
df = self | ||
if numeric_only is True: | ||
df = _get_data(axis_matters=True) | ||
|
Uh oh!
There was an error while loading. Please reload this page.