'Obtain all elements of the bar from a row of dataframe
and return a BarEvent'

def _create_event(self, index, period, ticker, row):

    try:
        open_price = PriceParser.parse(row['Open'])
        high_price = PriceParser.parse(row['High'])
        low_price = PriceParser.parse(row['Low'])
        close_price = PriceParser.parse(row['Close'])
        adj_close_price = PriceParser.parse(row['Adj    Close'])
        volume = int(row['Volume'])
        bev = BarEvent(ticker, index, period, open_price, high_price, low_price, close_price, volume, adj_close_price)
        return bev
    except ValueError:
        raise EmptyBarEvent(("row    %s    %s    %s    %s    can't    be    convert    to    BarEvent" % (index, period, ticker, row)))
