Question: This is a code which i found in scikit learn website

```
from sklearn.datasets import load_iris
from sklearn import tree
iris = load_iris()
clf = tree.DecisionTreeClassifier()
clf = clf.fit(iris.data, iris.target)

```

here what is (iris.data,iris.target), 
for my project purpose using this code i've modified like
 `pest=open("project.csv","r+")`

```
clf=clf.fit(pest.data,pest.target)

```

but i get an error file has no attribute "data". 
[please click on this to view my data set "project"](https://docs.google.com/file/d/0B7J0TzMJ1It7ZHNaTHFQSXh5ams/edit).

I need to get a tree which has the root node crops and the leaf nodes toxicity level. How can I set the root node and the class label. I've tried a lot but could not get it.

Answer: 
You should frame it as ,

```
String query= "select City from table where ID=2";

```

The general syntax select (COLUMN 1 , COLUMN 2) from table where condition; also you can use `*` to select the entire row.

will return `Delhi` in the resultset. hope you are using jdbc
```
Where id = IdInputVar

```

Should work