

def get_current(self):
    '\n        Get a Panel that is the current data in view. It is not safe to persist\n        these objects because internal data might change\n        '
    where = slice(self._oldest_frame_idx(), self._pos)
    major_axis = pd.DatetimeIndex(deepcopy(self.date_buf[where]), tz='utc')
    return pd.Panel(self.buffer.values[:, where, :], self.items, major_axis, self.minor_axis, dtype=self.dtype)

dataset/ETHPy150Open quantopian/zipline/zipline/utils/data.py MutableIndexRollingPanel.get_current/original