class_docstr: TSShiftPerturber adds random lag in a time continuous block of the
  time series data. The lag introduction cause gap in the data, which is
  imputed using the specified interpolation function.
class_docstr_tok: ["TSShiftPerturber","adds","random","lag","in","a","time","continuous","block","of","the","time","series","data",".","The","lag","introduction","cause","gap","in","the","data",",","which","is","imputed","using","the","specified","interpolation","function","."]
code: def _fit(
      self,
      x: Union["tsFrame", np.ndarray],
  ):
      self._data = x.copy()
      return self
  
file_path: AIX360/aix360/algorithms/tsutils/tsperturbers/ts_shift_perturber.py
imports: import numpy
  import pandas
  from typing import Union
  from scipy.interpolate import interp1d
  from aix360.algorithms.tsutils.tsframe import tsFrame, to_np_array
  from aix360.algorithms.tsutils.tsperturbers.tsperturber import BlockSelector, TSPerturber
label_desc: Use image node_id 4 for calling the TSShiftPerturber obj's underlying member method code with example usage: obj._fit(x) and returns: self