'Loads bars for a given instrument from a CSV formatted file.
The instrument gets registered in the bar feed.
:param instrument: Instrument identifier.
:type instrument: string.
:param path: The path to the CSV file.
:type path: string.
:param timezone: The timezone to use to localize bars. Check :mod:`pyalgotrade.marketsession`.
:type timezone: A pytz timezone.'

def addBarsFromDataFrame(self, instrument, dataFrame, timezone=None):

    if isinstance(timezone, int):
        raise Exception('timezone    as    an    int    parameter    is    not    supported    anymore.    Please    use    a    pytz    timezone    instead.')
    if (timezone is None):
        timezone = self.__timezone
    rowParser = RowParser(self.getDailyBarTime(), self.getFrequency(), timezone, self.__sanitizeBars)
    dataFrameBarfeed.BarFeed.addBarsFromDataFrame(self, instrument, rowParser, dataFrame)
