(self, index)
return name, indexer, expression
Returns (name, indexer, expression) for a given input to __getitem__.
Returns (name, indexer, expression) for a given input to __getitem__.
Returns ( name indexer expression ) for a given input to __getitem__ .
def _get_name_and_indexer_and_expression(self, index):
    """Returns (name, indexer, expression) for a given input to __getitem__."""
    if isinstance(index, tuple):
      name, column_index = index
      try:
        # If named_index and column_index are both array-like, reshape
        # named_index to (n, 1) so that it can be broadcasted against
        # column_index.
        expression = np.ix_(self._named_index, column_index)
      except ValueError:
        expression = (self._named_index, column_index)
    else:
      name = index
      expression = self._named_index
    indexer = self._get_cached_named_indexer(name)
    return name, indexer, expression
def _get_name_and_indexer_and_expression ( self , index ) : if isinstance ( index , tuple ) : name , column_index = index try : # If named_index and column_index are both array-like, reshape # named_index to (n, 1) so that it can be broadcasted against # column_index. expression = np . ix_ ( self . _named_index , column_index ) except ValueError : expression = ( self . _named_index , column_index ) else : name = index expression = self . _named_index indexer = self . _get_cached_named_indexer ( name ) return name , indexer , expression