parameters: (self)
return_statement: return self.result_index._values
docstring: Analogous to result_index, but returning an ndarray/ExtensionArray
          allowing us to retain ExtensionDtypes not supported by Index.
docstring_summary: Analogous to result_index, but returning an ndarray/ExtensionArray
          allowing us to retain ExtensionDtypes not supported by Index.
docstring_tokens: Analogous to result_index but returning an ndarray / ExtensionArray allowing us to retain ExtensionDtypes not supported by Index .
function: def result_arraylike(self) -> ArrayLike:
          """
          Analogous to result_index, but returning an ndarray/ExtensionArray
          allowing us to retain ExtensionDtypes not supported by Index.
          """
          # TODO: once Index supports arbitrary EAs, this can be removed in favor
          #  of result_index
          if len(self.groupings) == 1:
              return self.groupings[0].group_arraylike
  
          return self.result_index._values
function_tokens: def result_arraylike ( self ) -> ArrayLike : # TODO: once Index supports arbitrary EAs, this can be removed in favor #  of result_index if len ( self . groupings ) == 1 : return self . groupings [ 0 ] . group_arraylike return self . result_index . _values