class_docstr: Allows the discretisation of numeric data.
  
  Example:
  ::
      >>> import causalnex
      >>> import pandas as pd
      >>>
      >>> df = pd.DataFrame({'Age': [12, 13, 18, 19, 22, 60]})
      >>>
      >>> from causalnex.discretiser import Discretiser
      >>> df["Transformed_Age_1"] = Discretiser(method="fixed",
      >>> numeric_split_points=[11,18,50]).transform(df["Age"])
      >>> df.to_dict()
      {'Age': {0: 7, 1: 12, 2: 13, 3: 18, 4: 19, 5: 22, 6: 60},
      'Transformed_Age': {0: 0, 1: 1, 2: 1, 3: 2, 4: 2, 5: 2, 6: 3}}
docstr: Transform the input data into discretised digits, based on the numeric_split_points that were either
  learned through using fit(), or from initialisation if method="fixed".
  
  Args:
      data (np.ndarray): values that will be transformed into discretised digits.
  
  Returns:
      input data transformed into discretised digits.
docstr_tok: ["Transform","the","input","data","into","discretised","digits",",","based","on","the","numeric_split_points","that","were","either","learned","through","using","fit","(",")",",","or","from","initialisation","if","method=","''","fixed","''",".","Args",":","data","(","np.ndarray",")",":","values","that","will","be","transformed","into","discretised","digits",".","Returns",":","input","data","transformed","into","discretised","digits","."]
code: def transform(self, data: np.ndarray) -> np.ndarray:
      """
      Transform the input data into discretised digits, based on the numeric_split_points that were either
      learned through using fit(), or from initialisation if method="fixed".
  
      Args:
          data (np.ndarray): values that will be transformed into discretised digits.
  
      Returns:
          input data transformed into discretised digits.
      """
  
      return np.digitize(data, self.numeric_split_points, right=False)
  
file_path: causalnex/causalnex/discretiser/discretiser.py
imports: from typing import List
  import numpy
  from sklearn.base import BaseEstimator, TransformerMixin
label_desc: Use image node_id 3 for calling the Discretiser obj's underlying member method code with example usage: obj.transform(data) and returns: np