class_docstr: Accessor to ``xgboost``.
docstr: Convert specified tree to graphviz instance. IPython can automatically plot the
  returned graphiz instance. Otherwise, you shoud call .render() method
  of the returned graphiz instance.
  
  Parameters
  ----------
  num_trees : int, default 0
      Specify the ordinal number of target tree
  rankdir : str, default "UT"
      Passed to graphiz via graph_attr
  yes_color : str, default '#0000FF'
      Edge color when meets the node condigion.
  no_color : str, default '#FF0000'
      Edge color when doesn't meet the node condigion.
  kwargs :
      Other keywords passed to graphviz graph_attr
  
  Returns
  -------
  ax : matplotlib Axes
code: def to_graphviz(
      self,
      num_trees=0,
      rankdir="UT",
      yes_color="#0000FF",
      no_color="#FF0000",
      **kwargs,
  ):
      """Convert specified tree to graphviz instance. IPython can automatically plot the
      returned graphiz instance. Otherwise, you shoud call .render() method
      of the returned graphiz instance.
  
      Parameters
      ----------
      num_trees : int, default 0
          Specify the ordinal number of target tree
      rankdir : str, default "UT"
          Passed to graphiz via graph_attr
      yes_color : str, default '#0000FF'
          Edge color when meets the node condigion.
      no_color : str, default '#FF0000'
          Edge color when doesn't meet the node condigion.
      kwargs :
          Other keywords passed to graphviz graph_attr
  
      Returns
      -------
      ax : matplotlib Axes
      """
  
      import xgboost as xgb
  
      if not isinstance(self._df.estimator, xgb.XGBModel):
          raise ValueError(
              "estimator must be XGBRegressor or XGBClassifier"
          )
      return xgb.to_graphviz(
          self._df.estimator,
          num_trees=num_trees,
          rankdir=rankdir,
          yes_color=yes_color,
          no_color=no_color,
          **kwargs,
      )
  
file_path: pandas-ml/pandas_ml/xgboost/base.py
imports: from pandas_ml.core.accessor import _AccessorMethods
label_desc: Use image node_id 4 for calling the XGBoostMethods obj's underlying member method code with example usage: obj.to_graphviz(num_trees, rankdir, yes_color, no_color) and returns: xgb