def _get_result(obj, method, key, axis):
 if isinstance(key, dict):
  key = key[axis]
 if (method == 'indexer'):
  method = 'ix'
  key = obj._get_axis(axis)[key]
 try:
  xp = getattr(obj, method).__getitem__(_axify(obj, key, axis))
 except:
  xp = getattr(obj, method).__getitem__(key)
 return xp

def _get_result ( obj , method , key , axis ) : if isinstance ( key , dict ) : key = key [ axis ] if ( method == 'indexer' ) : method = 'ix' key = obj . _get_axis ( axis ) [ key ] try : xp = getattr ( obj , method ) . __getitem__ ( _axify ( obj , key , axis ) ) except : xp = getattr ( obj , method ) . __getitem__ ( key ) return xp
return the result for this obj with this key and this axis .