class_docstr: Pipeline for applying ``SeriesProcessor`` objects sequentially.
  
  Parameters
  ----------
  processors : List[Union[SeriesProcessor, SeriesPipeline]], optional
      List of ``SeriesProcessor`` or ``SeriesPipeline`` instances that will be applied
      sequentially to the internal series dict, by default None.
      **The processing steps will be executed in the same order as passed in this
      list.**
class_docstr_tok: ["Pipeline","for","applying","``","SeriesProcessor","``","objects","sequentially",".","Parameters","--","--","--","--","--","processors",":","List","[","Union","[","SeriesProcessor",",","SeriesPipeline","]","]",",","optional","List","of","``","SeriesProcessor","``","or","``","SeriesPipeline","``","instances","that","will","be","applied","sequentially","to","the","internal","series","dict",",","by","default","None",".","*","*","The","processing","steps","will","be","executed","in","the","same","order","as","passed","in","this","list",".","*","*"]
docstr: Insert a ``SeriesProcessor`` at the given index in the pipeline.
  
  Parameters
  ----------
  idx : int
      The index where the given processor should be inserted in the pipeline.
      Index 0 will insert the given processor at the front of the pipeline,
      and index ``len(pipeline)`` is equivalent to appending the processor.
  processor : Union[SeriesProcessor, SeriesPipeline]
      The ``SeriesProcessor`` or ``SeriesPipeline`` that will be inserted.<br>
      .. note::
          If the given processor is a ``SeriesPipeline``, all its processors will
          be inserted sequentially, starting from the given index.
docstr_tok: ["Insert","a","``","SeriesProcessor","``","at","the","given","index","in","the","pipeline",".","Parameters","--","--","--","--","--","idx",":","int","The","index","where","the","given","processor","should","be","inserted","in","the","pipeline",".","Index","0","will","insert","the","given","processor","at","the","front","of","the","pipeline",",","and","index","``","len","(","pipeline",")","``","is","equivalent","to","appending","the","processor",".","processor",":","Union","[","SeriesProcessor",",","SeriesPipeline","]","The","``","SeriesProcessor","``","or","``","SeriesPipeline","``","that","will","be","inserted.","<","br",">","..","note",":",":","If","the","given","processor","is","a","``","SeriesPipeline","``",",","all","its","processors","will","be","inserted","sequentially",",","starting","from","the","given","index","."]
code: def insert(
      self, idx: int, processor: Union[SeriesProcessor, SeriesPipeline]
  ) -> None:
      """Insert a ``SeriesProcessor`` at the given index in the pipeline.
  
      Parameters
      ----------
      idx : int
          The index where the given processor should be inserted in the pipeline.
          Index 0 will insert the given processor at the front of the pipeline,
          and index ``len(pipeline)`` is equivalent to appending the processor.
      processor : Union[SeriesProcessor, SeriesPipeline]
          The ``SeriesProcessor`` or ``SeriesPipeline`` that will be inserted.<br>
          .. note::
              If the given processor is a ``SeriesPipeline``, all its processors will
              be inserted sequentially, starting from the given index.
  
      """
      if isinstance(processor, SeriesProcessor):
          self.processing_steps.insert(idx, processor)
      elif isinstance(processor, SeriesPipeline):
          for i, ps in enumerate(processor.processing_steps):
              self.insert(idx + i, ps)
      else:
          raise TypeError(
              "Can only insert a SeriesProcessor or SeriesPipeline, "
              + f"not {type(processor)}"
          )
  
file_path: tsflex/tsflex/processing/series_pipeline.py
imports: from __future__ import annotations
  from pathlib import Path
  from typing import Dict, List, Optional, Union
  import dill
  import pandas
  from ..utils.data import flatten, series_dict_to_df, to_series_list
  from ..utils.logging import add_logging_handler, delete_logging_handlers
  from .logger import logger
  from .series_processor import SeriesProcessor
label_desc: Use image node_id 4 for calling the SeriesPipeline obj's underlying member method code with example usage: obj.insert(idx, processor) without return types