class_docstr: A smoothed conditional mean
  
  {usage}
  
  Parameters
  ----------
  {common_parameters}
  legend_fill_ratio : float, default=0.5
      How much (vertically) of the legend box should be filled by
      the color that indicates the confidence intervals. Should be
      in the range [0, 1].
class_docstr_tok: ["A","smoothed","conditional","mean","{","usage","}","Parameters","--","--","--","--","--","{","common_parameters","}","legend_fill_ratio",":","float",",","default=0.5","How","much","(","vertically",")","of","the","legend","box","should","be","filled","by","the","color","that","indicates","the","confidence","intervals",".","Should","be","in","the","range","[","0",",","1","]","."]
code: def setup_data(self, data: pd.DataFrame) -> pd.DataFrame:
      return data.sort_values(["PANEL", "group", "x"])
  
file_path: plotnine/plotnine/geoms/geom_smooth.py
imports: from __future__ import annotations
  import typing
  from .._utils import to_rgba
  from ..doctools import document
  from .geom import geom
  from .geom_line import geom_line, geom_path
  from .geom_ribbon import geom_ribbon
label_desc: Use image node_id 2 for calling the geom_smooth obj's underlying member method code with example usage: obj.setup_data(data) and returns: data