docs: def rolling_window_sequences(X, index, window_size, target_size, target_column):
      """Create rolling window sequences out of timeseries data."""
      out_X = list()
      out_y = list()
      X_index = list()
      y_index = list()
  
      target = X[:, target_column]
  
      for start in range(len(X) - window_size - target_size + 1):
          end = start + window_size
          out_X.append(X[start:end])
          out_y.append(target[end:end + target_size])
          X_index.append(index[start])
          y_index.append(index[end])
  
      return np.asarray(out_X), np.asarray(out_y), np.asarray(X_index), np.asarray(y_index)