code: def __init__(
      self, frequency=bar.Frequency.DAY, timezone=None, maxLen=None
  ):
      if frequency not in [bar.Frequency.DAY, bar.Frequency.WEEK]:
          raise Exception("Invalid frequency")
  
      super(Feed, self).__init__(frequency, timezone, maxLen)
  
      self.setDateTimeFormat("%Y-%m-%d")
      self.setColumnName("datetime", "Date")
      self.setColumnName("adj_close", "Adj. Close")
  
imports: from pyalgotrade.barfeed import csvfeed
  from pyalgotrade import bar
label_desc: Use image node_id 1 to create a new Feed object from inherited base classes: csvfeed with example: obj = Feed(frequency, timezone, maxLen)