class_docstr: Aggregate data along the value axis using given method.
  
  Parameters
  ----------
  func : str or callable
      Name of a :class:`pandas.Series` method or a vector -> scalar function.
  
  See Also
  --------
  objects.Est : Aggregation with error bars.
  
  Examples
  --------
  .. include:: ../docstrings/objects.Agg.rst
class_docstr_tok: ["Aggregate","data","along","the","value","axis","using","given","method",".","Parameters","--","--","--","--","--","func",":","str","or","callable","Name","of","a",":","class",":","`","pandas.Series","`","method","or","a","vector","-",">","scalar","function",".","See","Also","--","--","--","--","objects.Est",":","Aggregation","with","error","bars",".","Examples","--","--","--","--","..","include",":",":","..","\/docstrings\/objects.Agg.rst"]
code: def __call__(
      self,
      data: DataFrame,
      groupby: GroupBy,
      orient: str,
      scales: dict[str, Scale],
  ) -> DataFrame:
      var = {"x": "y", "y": "x"}.get(orient)
      res = (
          groupby.agg(data, {var: self.func})
          .dropna(subset=[var])
          .reset_index(drop=True)
      )
      return res
  
file_path: seaborn/seaborn/_stats/aggregation.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from typing import ClassVar, Callable
  import pandas
  from pandas import DataFrame
  from seaborn._core.scales import Scale
  from seaborn._core.groupby import GroupBy
  from seaborn._stats.base import Stat
  from seaborn._statistics import EstimateAggregator, WeightedAggregator
  from seaborn._core.typing import Vector
label_desc: Use image node_id 1 for calling the Agg obj's underlying member method code with example usage: obj.__call__(data, groupby, orient, scales) and returns: res