def validate_argsort_with_ascending(ascending, args, kwargs):
 if (is_integer(ascending) or (ascending is None)):
  args = ((ascending,) + args)
  ascending = True
 validate_argsort(args, kwargs, max_fname_arg_count=1)
 return ascending

def validate_argsort_with_ascending ( ascending , args , kwargs ) : if ( is_integer ( ascending ) or ( ascending is None ) ) : args = ( ( ascending , ) + args ) ascending = True validate_argsort ( args , kwargs , max_fname_arg_count = 1 ) return ascending
if categorical .