class_docstr: Derivative slope transformer.
class_docstr_tok: ["Derivative","slope","transformer","."]
docstr: Get derivatives.
docstr_tok: ["Get","derivatives","."]
code: def row_wise_get_der(X):
      """Get derivatives."""
  
      def get_der(x):
          der = []
          for i in range(1, len(x) - 1):
              der.append(
                  ((x[i] - x[i - 1]) + ((x[i + 1] - x[i - 1]) / 2)) / 2
              )
          return pd.Series([der[0]] + der + [der[-1]])
  
      return [get_der(x) for x in X]
  
imports: import numpy
  import pandas
  from joblib import Parallel, delayed
  from sktime.datatypes import convert_to
  from sktime.transformations.base import BaseTransformer
  from sktime.transformations.panel.segment import RandomIntervalSegmenter
  from sktime.utils.pandas import df_map
label_desc: Use image node_id 2 for calling the DerivativeSlopeTransformer obj's underlying member method code with example usage: obj.row_wise_get_der(X) and returns: unknown, pd