class_docstr: Calculate window boundaries based on a non-fixed offset such as a BusinessDay.
class_docstr_tok: ["Calculate","window","boundaries","based","on","a","non-fixed","offset","such","as","a","BusinessDay","."]
code: def __init__(
      self,
      index_array: np.ndarray | None = None,
      window_size: int = 0,
      index=None,
      offset=None,
      **kwargs,
  ) -> None:
      super().__init__(index_array, window_size, **kwargs)
      self.index = index
      self.offset = offset
  
imports: from __future__ import annotations
  from datetime import timedelta
  import numpy
  from pandas._libs.window.indexers import calculate_variable_window_bounds
  from pandas.util._decorators import Appender
  from pandas.core.dtypes.common import ensure_platform_int
  from pandas.tseries.offsets import Nano
label_desc: Use image node_id 1 to create a new VariableOffsetWindowIndexer object from inherited base classes: BaseIndexer with example: obj = VariableOffsetWindowIndexer(index_array, window_size, index, offset)