Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Script execution error

dbldeedbldee CyberspaceMember Posts: 1

I am working with a csv file which is in my TREES directory. The part that I think is a problem is..
<from pandas import Series, DataFrame
import pandas as pd
import numpy as np
import os
import matplotlib.pylab as plt
from sklearn.cross_validation import train_test_split
from sklearn.tree import DecisionTreeClassifier
from sklearn.metrics import classification_report
import sklearn.metrics

os.chdir('C:\Users\dbldee\Desktop\TREES')
"""
Data Engineering and Analysis
"""

Load the dataset

AH_data = pd.read_csv("tree_addhealth.csv")>

However only errors are returned

runfile('C:/Users/dbldee/Downloads/_a9dd496af2b0938ed18569438ce3c200_DECISIONTREEPYTHON.py', wdir='C:/Users/dbldee/Downloads')
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\dbldee\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 714, in runfile
execfile(filename, namespace)
File "C:\Users\dbldee\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 89, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/dbldee/Downloads/_a9dd496af2b0938ed18569438ce3c200_DECISIONTREEPYTHON.py", line 72, in
Image(graph.create_png())
File "C:\Users\dbldee\Anaconda3\lib\site-packages\pydotplus\graphviz.py", line 1797, in
lambda f=frmt, prog=self.prog: self.create(format=f, prog=prog)
File "C:\Users\dbldee\Anaconda3\lib\site-packages\pydotplus\graphviz.py", line 1960, in create
** 'GraphViz\'s executables not found')

==========================

****Can some sharp pythonista help a noobie?****

thanks

Sign In or Register to comment.