

def add_frame(self, tick, frame, minor_axis=None, items=None):
    '\n        '
    if (tick._pos == self.cap):
        self._roll_data()
    if isinstance(frame, pd.DataFrame):
        minor_axis = frame.columns
        items = frame.index
    if (set(minor_axis).difference(set(self.minor_axis)) or set(items).difference(set(self.items))):
        self._update_buffer(frame)
    vals = frame.T.astype(self.dtype)
    self.buffer.loc[:, self._pos, :] = vals
    self.date_buf[self._pos] = tick
    self._pos += 1

dataset/ETHPy150Open quantopian/zipline/zipline/utils/data.py MutableIndexRollingPanel.add_frame/VarMisuse@26/34 `self`->`tick`