class_docstr: Base class of all stats
docstr: Overide to modify data before compute_layer is called
  
  Parameters
  ----------
  data :
      Data
  
  Returns
  -------
  out :
      Data
docstr_tok: ["Overide","to","modify","data","before","compute_layer","is","called","Parameters","--","--","--","--","--","data",":","Data","Returns","--","--","--","-","out",":","Data"]
code: def setup_data(self, data: pd.DataFrame) -> pd.DataFrame:
      """
      Overide to modify data before compute_layer is called
  
      Parameters
      ----------
      data :
          Data
  
      Returns
      -------
      out :
          Data
      """
      return data
  
imports: from __future__ import annotations
  import typing
  from copy import deepcopy
  import pandas
  from .._utils import check_required_aesthetics, copy_keys, data_mapping_as_kwargs, groupby_apply, remove_missing, uniquecols
  from .._utils.registry import Register, Registry
  from ..exceptions import PlotnineError
  from ..layer import layer
  from ..mapping import aes
  from abc import ABC
label_desc: Use image node_id 7 for calling the stat obj's underlying member method code with example usage: obj.setup_data(data) and returns: data