class_docstr: Provide the groupby facilities to the mixed object.
docstr: Dispatch to apply.
docstr_tok: ["Dispatch","to","apply","."]
code: def _dispatch(name, *args, **kwargs):
      """
      Dispatch to apply.
      """
  
      def outer(self, *args, **kwargs):
          def f(x):
              x = self._shallow_copy(x, groupby=self._groupby)
              return getattr(x, name)(*args, **kwargs)
  
          return self._groupby.apply(f)
  
      outer.__name__ = name
      return outer
  
imports: import types
  from pandas.util._decorators import make_signature
  from pandas.core.dtypes.common import is_list_like, is_scalar
label_desc: Use image node_id 1 for calling the GroupByMixin obj's underlying member method code with example usage: obj._dispatch(name) and returns: outer, self, getattr