#NEWLINE# def make_arg_reduction( func , argfunc , is_nan_func = False ) : #NEWLINE# #INDENT# 'Create a argreduction callable.\n\n    Parameters\n    ----------\n    func : callable\n        The reduction (e.g. ``min``)\n    argfunc : callable\n        The argreduction (e.g. ``argmin``)\n    ' #NEWLINE# chunk = partial ( arg_chunk , func , argfunc ) #NEWLINE# combine = partial ( arg_combine , func , argfunc ) #NEWLINE# if is_nan_func : #NEWLINE# #INDENT# agg = partial ( nanarg_agg , func , argfunc ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# agg = partial ( arg_agg , func , argfunc ) #NEWLINE# #UNINDENT# @ wraps ( argfunc ) #NEWLINE# def _( x , axis = None , split_every = None ) : #NEWLINE# #INDENT# return arg_reduction ( x , chunk , combine , agg , axis , split_every ) #NEWLINE# #UNINDENT# return _