code: def __init__(self, dataSeries, frequency, aggfun, maxLen=None):
      super(ResampledDataSeries, self).__init__(maxLen)
      self.initDSResampler(dataSeries, frequency)
      self.__aggfun = aggfun
  
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 ResampledDataSeries object from inherited base classes: dataseries, DSResampler with example: obj = ResampledDataSeries(dataSeries, frequency, aggfun, maxLen)