code: def update_offset(self, new_offset):
          
          self.offset = new_offset
          self.data_points = self._data_points[self.offset:]
          self.timestamps = self._timestamps[self.offset:]
docs: Updates how many data points to skip in caculations.
  
          Always use this function to update offset instead of directly setting
          self.offset.
  
          Args:
              new_offset: The new offset.