def _get_join_indexers(left_keys, right_keys, sort=False, how='inner', **kwargs):
 from functools import partial
 assert (len(left_keys) == len(right_keys)), 'left_key and right_keys must be the same length'
 fkeys = partial(_factorize_keys, sort=sort)
 (llab, rlab, shape) = map(list, zip(*map(fkeys, left_keys, right_keys)))
 (lkey, rkey) = _get_join_keys(llab, rlab, shape, sort)
 (lkey, rkey, count) = fkeys(lkey, rkey)
 kwargs = copy.copy(kwargs)
 if (how == 'left'):
  kwargs['sort'] = sort
 join_func = _join_functions[how]
 return join_func(lkey, rkey, count, **kwargs)

def _get_join_indexers ( left_keys , right_keys , sort = False , how = 'inner' , ** kwargs ) : from functools import partial assert ( len ( left_keys ) == len ( right_keys ) ) , 'left_key and right_keys must be the same length' fkeys = partial ( _factorize_keys , sort = sort ) ( llab , rlab , shape ) = map ( list , zip ( * map ( fkeys , left_keys , right_keys ) ) ) ( lkey , rkey ) = _get_join_keys ( llab , rlab , shape , sort ) ( lkey , rkey , count ) = fkeys ( lkey , rkey ) kwargs = copy . copy ( kwargs ) if ( how == 'left' ) : kwargs [ 'sort' ] = sort join_func = _join_functions [ how ] return join_func ( lkey , rkey , count , ** kwargs )
parameters returns .