class_docstr: Preallocation strategies for rolling window over expanding data set
  
  Restrictions: major_axis can only be a DatetimeIndex for now
class_docstr_tok: ["Preallocation","strategies","for","rolling","window","over","expanding","data","set","Restrictions",":","major_axis","can","only","be","a","DatetimeIndex","for","now"]
docstr_tok: []
code: def add_frame(self, tick, frame, minor_axis=None, items=None):
      """ """
      if self._pos == self.cap:
          self._roll_data()
  
      values = frame
      if isinstance(frame, pd.DataFrame):
          values = frame.values
  
      self.buffer.values[:, self._pos, :] = values.astype(self.dtype)
      self.date_buf[self._pos] = tick
  
      self._pos += 1
  
imports: import datetime
  from copy import deepcopy
  import numpy
  import pandas
label_desc: Use image node_id 10 for calling the RollingPanel obj's underlying member method code with example usage: obj.add_frame(tick, frame, minor_axis, items) without return types