docstr: Data aggregator that produces an estimate and error bar interval.
  
  Parameters
  ----------
  estimator : callable or string
      Function (or method name) that maps a vector to a scalar.
  errorbar : string, (string, number) tuple, or callable
      Name of errorbar method (either "ci", "pi", "se", or "sd"), or a tuple
      with a method name and a level parameter, or a function that maps from a
      vector to a (min, max) interval, or None to hide errorbar. See the
      :doc:`errorbar tutorial </tutorial/error_bars>` for more information.
  boot_kws
      Additional keywords are passed to bootstrap when error_method is "ci".
docstr_tok: ["Data","aggregator","that","produces","an","estimate","and","error","bar","interval",".","Parameters","--","--","--","--","--","estimator",":","callable","or","string","Function","(","or","method","name",")","that","maps","a","vector","to","a","scalar",".","errorbar",":","string",",","(","string",",","number",")","tuple",",","or","callable","Name","of","errorbar","method","(","either","``","ci","''",",","``","pi","''",",","``","se","''",",","or","``","sd","''",")",",","or","a","tuple","with","a","method","name","and","a","level","parameter",",","or","a","function","that","maps","from","a","vector","to","a","(","min",",","max",")","interval",",","or","None","to","hide","errorbar",".","See","the",":","doc",":","`","errorbar","tutorial","<","\/tutorial\/error_bars",">","`","for","more","information",".","boot_kws","Additional","keywords","are","passed","to","bootstrap","when","error_method","is","``","ci","''","."]
code: def __init__(self, estimator, errorbar=None, **boot_kws):
      """
      Data aggregator that produces an estimate and error bar interval.
  
      Parameters
      ----------
      estimator : callable or string
          Function (or method name) that maps a vector to a scalar.
      errorbar : string, (string, number) tuple, or callable
          Name of errorbar method (either "ci", "pi", "se", or "sd"), or a tuple
          with a method name and a level parameter, or a function that maps from a
          vector to a (min, max) interval, or None to hide errorbar. See the
          :doc:`errorbar tutorial </tutorial/error_bars>` for more information.
      boot_kws
          Additional keywords are passed to bootstrap when error_method is "ci".
  
      """
      self.estimator = estimator
  
      method, level = _validate_errorbar_arg(errorbar)
      self.error_method = method
      self.error_level = level
  
      self.boot_kws = boot_kws
  
imports: from numbers import Number
  from statistics import NormalDist
  import numpy
  import pandas
  from .algorithms import bootstrap
  from .utils import _check_argument
label_desc: Use image node_id 1 to create a new EstimateAggregator object  with example: obj = EstimateAggregator(estimator, errorbar)