code: def __init__(self, groupDateTime, bar_, frequency):
      super(BarGrouper, self).__init__(groupDateTime)
      self.__open = bar_.getOpen()
      self.__high = bar_.getHigh()
      self.__low = bar_.getLow()
      self.__close = bar_.getClose()
      self.__volume = bar_.getVolume()
      self.__adjClose = bar_.getAdjClose()
      self.__useAdjValue = bar_.getUseAdjValue()
      self.__frequency = frequency
  
imports: import abc
  import six
  from pyalgotrade import dataseries
  from pyalgotrade.dataseries import bards
  from pyalgotrade import bar
  from pyalgotrade import resamplebase
label_desc: Use image node_id 1 to create a new BarGrouper object from inherited base classes: resamplebase with example: obj = BarGrouper(groupDateTime, bar_, frequency)