def maybe_convert_ix(*args):
 ixify = True
 for arg in args:
  if (not isinstance(arg, (np.ndarray, list, ABCSeries, Index))):
   ixify = False
 if ixify:
  return np.ix_(*args)
 else:
  return args

def maybe_convert_ix ( * args ) : ixify = True for arg in args : if ( not isinstance ( arg , ( np . ndarray , list , ABCSeries , Index ) ) ) : ixify = False if ixify : return np . ix_ ( * args ) else : return args
we likely want to take the cross-product .