File tree 2 files changed +13
-7
lines changed
2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -11010,8 +11010,7 @@ def idxmin(
11010
11010
11011
11011
index = data ._get_axis (axis )
11012
11012
result = [index [i ] if i >= 0 else np .nan for i in indices ]
11013
- final_result = data ._constructor_sliced (result , index = data ._get_agg_axis (axis ))
11014
- return final_result .__finalize__ (self , method = "idxmin" )
11013
+ return data ._constructor_sliced (result , index = data ._get_agg_axis (axis ))
11015
11014
11016
11015
@doc (_shared_docs ["idxmax" ], numeric_only_default = "False" )
11017
11016
def idxmax (
@@ -11036,8 +11035,7 @@ def idxmax(
11036
11035
11037
11036
index = data ._get_axis (axis )
11038
11037
result = [index [i ] if i >= 0 else np .nan for i in indices ]
11039
- final_result = data ._constructor_sliced (result , index = data ._get_agg_axis (axis ))
11040
- return final_result .__finalize__ (self , method = "idxmax" )
11038
+ return data ._constructor_sliced (result , index = data ._get_agg_axis (axis ))
11041
11039
11042
11040
def _get_agg_axis (self , axis_num : int ) -> Index :
11043
11041
"""
Original file line number Diff line number Diff line change 226
226
pytest .param (
227
227
(pd .DataFrame , frame_data , operator .methodcaller ("nunique" )),
228
228
),
229
- (pd .DataFrame , frame_data , operator .methodcaller ("idxmin" )),
230
- (pd .DataFrame , frame_data , operator .methodcaller ("idxmax" )),
231
- (pd .DataFrame , frame_data , operator .methodcaller ("mode" )),
229
+ pytest .param (
230
+ (pd .DataFrame , frame_data , operator .methodcaller ("idxmin" )),
231
+ marks = not_implemented_mark ,
232
+ ),
233
+ pytest .param (
234
+ (pd .DataFrame , frame_data , operator .methodcaller ("idxmax" )),
235
+ marks = not_implemented_mark ,
236
+ ),
237
+ pytest .param (
238
+ (pd .DataFrame , frame_data , operator .methodcaller ("mode" )),
239
+ ),
232
240
pytest .param (
233
241
(pd .Series , [0 ], operator .methodcaller ("mode" )),
234
242
marks = not_implemented_mark ,
You can’t perform that action at this time.
0 commit comments