

def set_current(self, panel):
    '\n        Set the values stored in our current in-view data to be values of the\n        passed panel.  The passed panel must have the same indices as the panel\n        that would be returned by self.get_current.\n        '
    where = slice(self._start_index, self._pos)
    self.buffer.values[:, where, :] = panel.values

dataset/ETHPy150Open quantopian/zipline/zipline/utils/data.py RollingPanel.set_current/original