title: Python libraries imported but unused
body: <p>The code is actually re-written from an application that worked
  Using the latest version of python via Anaconda and Spyder ide
  With Spyder
     <a href="http://i.stack.imgur.com/MxgeS.jpg" rel="nofollow">code screenshot</a></p>
  
  <pre><code>from pandas import Series, DataFrame
  import pandas as pd
  import numpy as np
  import matplotlib as plt
  import os
  from sklearn.cross_validation import train_test_split
  from sklearn.tree import DecisionTreeClassifier
  import sklearn.metrics
  from sklearn.metrics import classification_report
  </code></pre>
  
  <p>Code analysis show pandas library imported but unused.</p>
  
  <p>Please help out a python noobie</p>
  
  <p>thanks for the comments, I'm learning!!</p>
  
  <p>I have run the script both with and without the imports as suggested and the console return the errors as seen in the SS<a href="http://i.stack.imgur.com/A0sIn.jpg" rel="nofollow">console error messages</a></p>
  
  <pre><code>&gt;&gt;&gt; runfile('C:/Users/dbldee/Desktop/TREES/Decisiontree.py', wdir='C:/Users/dbldee/Desktop/TREES')
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    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/Desktop/TREES/Decisiontree.py", line 42, in &lt;module&gt;
      classifier = classifier.fit(pred_train,tar_train)
  TypeError: fit() missing 1 required positional argument: 'y'
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>Which suggests that the problem may be with reading of the file??</p>