class_docstr: Explanation wrapper for the `shap` package
  
  This object uses the shap package to create the model explanation.
  See ttps://github.com/slundberg/shap
  
  Parameters
  ----------
  type : {'predict_parts', 'model_parts'}
      Method type for calculations.
  
  Attributes
  ----------
  result : list or numpy.ndarray
      Calculated shap values for `new_observation` data.
  shap_explainer : {shap.TreeExplainer, shap.DeepExplainer, shap.GradientExplainer, shap.LinearExplainer, shap.KernelExplainer}
      Explainer object from the `shap` package.
  shap_explainer_type : {'TreeExplainer', 'DeepExplainer',
      'GradientExplainer', 'LinearExplainer', 'KernelExplainer'}
      String name of the Explainer class.
  new_observation : pandas.Series or pandas.DataFrame
      Observations for which the shap values will be calculated
      (later stored in `result`).
  type : {'predict_parts', 'model_parts'}
      Method type for calculations.
  
  Notes
  ----------
  - https://github.com/slundberg/shap
code: def __init__(self, type):
      self.shap_explainer = None
      self.type = type
      self.result = None
      self.new_observation = None
      self.shap_explainer_type = None
  
file_path: DALEX/python/dalex/dalex/wrappers/_shap/object.py
imports: import numpy
  from .None import checks
  from ..._explanation import Explanation
label_desc: Use image node_id 1 to create a new ShapWrapper object from inherited base classes: Explanation with example: obj = ShapWrapper(type)