class_docstr: Compare histogram to previous expanding histograms
class_docstr_tok: ["Compare","histogram","to","previous","expanding","histograms"]
docstr: Initialize an instance of ExpandingHistComparer.
  
  :param str read_key: key of input data to read from data store
  :param str store_key: key of output data to store in data store
  :param int shift: shift of rolling window. default is 1.
  :param str hist_col: column/key in input df/dict that contains the histogram. default is 'histogram'
  :param str suffix: column/key of rolling histogram. default is 'expanding' -> column = 'histogram_expanding'
docstr_tok: ["Initialize","an","instance","of","ExpandingHistComparer",".",":","param","str","read_key",":","key","of","input","data","to","read","from","data","store",":","param","str","store_key",":","key","of","output","data","to","store","in","data","store",":","param","int","shift",":","shift","of","rolling","window",".","default","is","1.",":","param","str","hist_col",":","column\/key","in","input","df\/dict","that","contains","the","histogram",".","default","is","'histogram'",":","param","str","suffix",":","column\/key","of","rolling","histogram",".","default","is","'expanding","'","-",">","column","=","'histogram_expanding","'"]
code: def __init__(
      self,
      read_key,
      store_key,
      shift: int = 1,
      hist_col: str = "histogram",
      suffix: str = "expanding",
  ) -> None:
      """Initialize an instance of ExpandingHistComparer.
  
      :param str read_key: key of input data to read from data store
      :param str store_key: key of output data to store in data store
      :param int shift: shift of rolling window. default is 1.
      :param str hist_col: column/key in input df/dict that contains the histogram. default is 'histogram'
      :param str suffix: column/key of rolling histogram. default is 'expanding' -> column = 'histogram_expanding'
      """
      super().__init__(
          expanding_hist,
          read_key,
          store_key,
          read_key,
          hist_col,
          suffix,
          shift=shift,
          hist_name=hist_col,
      )
      self.read_key = read_key
  
imports: import numpy
  import pandas
  from popmon.analysis.apply_func import ApplyFunc
  from popmon.analysis.functions import expand_norm_hist_mean_cov, expanding_hist, hist_sum, normalized_hist_mean_cov, relative_chi_squared, roll_norm_hist_mean_cov, rolling_hist
  from popmon.analysis.hist_numpy import check_similar_hists, get_consistent_numpy_entries, get_consistent_numpy_ndgrids
  from popmon.base import Pipeline
  from popmon.hist.hist_utils import COMMON_HIST_TYPES, is_numeric
label_desc: Use image node_id 1 to create a new ExpandingHistComparer object from inherited base classes: HistComparer with example: obj = ExpandingHistComparer(read_key, store_key, shift, hist_col, suffix)