title: Cannot Import Data in Python Using Pandas
body: <p>I am working through the following machine learning tutorial:</p>
  
  <p><a href="http://machinelearningmastery.com/machine-learning-in-python-step-by-step/" rel="nofollow noreferrer">http://machinelearningmastery.com/machine-learning-in-python-step-by-step/</a></p>
  
  <p>Here is my (mac) development environment:</p>
  
  <pre><code>Python 2.7.10 
  scipy: 0.13.0b1
  numpy: 1.8.0rc1
  matplotlib: 1.3.1
  pandas: 0.20.2
  sklearn: 0.18.1
  </code></pre>
  
  <p>When I try to run a script, to load the data from a URL containing the CSV data, I get the following error: </p>
  
  <pre><code>Traceback (most recent call last):
    File "load_data.py", line 4, in &lt;module&gt;
      dataset = pandas.read_csv(url, names=names)
  NameError: name 'pandas' is not defined
  </code></pre>
  
  <p>Here's the script:</p>
  
  <pre><code># Load dataset
  url = "https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data"
  names = ['sepal-length', 'sepal-width', 'petal-length', 'petal-width', 'class']
  dataset = pandas.read_csv(url, names=names)
  </code></pre>