-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CLN/PERF: Simplify argmin/argmax #58019
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
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 |
---|---|---|
|
@@ -1066,7 +1066,7 @@ def test_idxmin(self, float_frame, int_frame, skipna, axis): | |
frame.iloc[15:20, -2:] = np.nan | ||
for df in [frame, int_frame]: | ||
if (not skipna or axis == 1) and df is not int_frame: | ||
if axis == 1: | ||
if skipna: | ||
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. Shouldn't we still be hitting this with the 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. When |
||
msg = "Encountered all NA values" | ||
else: | ||
msg = "Encountered an NA value" | ||
|
@@ -1116,7 +1116,7 @@ def test_idxmax(self, float_frame, int_frame, skipna, axis): | |
frame.iloc[15:20, -2:] = np.nan | ||
for df in [frame, int_frame]: | ||
if (skipna is False or axis == 1) and df is frame: | ||
if axis == 1: | ||
if skipna: | ||
msg = "Encountered all NA values" | ||
else: | ||
msg = "Encountered an NA value" | ||
|
Uh oh!
There was an error while loading. Please reload this page.