code: def mean_se(series, mult=1):
      """
      Calculate mean and standard errors on either side
  
      Parameters
      ----------
      series : pandas.Series
          Values
      mult : float
          Multiplication factor.
      """
      m = np.mean(series)
      se = mult * np.sqrt(np.var(series) / len(series))
      return pd.DataFrame({"y": [m], "ymin": m - se, "ymax": m + se})
  
file_path: plotnine/plotnine/stats/stat_summary.py
imports: import numpy
  import pandas
  from .._utils import get_valid_kwargs, uniquecols
  from ..doctools import document
  from ..exceptions import PlotnineError
  from .stat import stat
label_desc: Use image node_id 6 for calling a global function with example usage: mean_se(series, mult) and returns: pd