So, I tried to work through the following machine learning tutorial:
http://machinelearningmastery.com/machine-learning-in-python-step-by-step/
This is my (mac) development environment:
Python 2.7.10
scipy: 0.13.0b1
numpy: 1.8.0rc1
matplotlib: 1.3.1
pandas: 0.20.2
sklearn: 0.18.1
When I try to run a script, to load the data from a URL containing the CSV data, I get the following error:
Traceback (most recent call last):
File "load_data.py", line 4, in <module>
dataset = pandas.read_csv(url, names=names)
NameError: name 'pandas' is not defined
Here's the script:
# 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)