from dtreeviz.trees import dtreeviz # remember to load the package viz = dtreeviz(tree_reg1, X_.values, y_['target_abs'].values, target_name=["target_abs"], feature_names=FITURES) viz