Code Sample, a copy-pastable example if possible
# Your code here
In [85]: from pandas.plotting import andrews_curves
In [86]: data = pd.read_csv('data/iris.data')
In [87]: plt.figure()
Out[87]: <matplotlib.figure.Figure at 0x7f45a9d158d0>
In [88]: andrews_curves(data, 'Name')
Out[88]: <matplotlib.axes._subplots.AxesSubplot at 0x7f45a9d26128>
Taken from Andrews Curves - Visualization, Documentation of pandas
Problem description
Okay, here it goes I'm working on beautiful representations of iris.data came across the documentation but for some reason from pandas.plotting import andrews_curves
didn't work but from pandas.tools.plotting import andrews_curves
there is nothing wrong with the codebase just a documentation fix.
Expected Output
Plotting of the graph is the expected output according to documentation - Image Instead what I'm getting - Error Image , sorry for hosting image on 3rd party site Fix : Fix
Output of pd.show_versions()
Thank You.
Comment From: TomAugspurger
This was moved around in pandas 0.20, and it looks like you're running 0.19.2; http://pandas.pydata.org/pandas-docs/version/0.19.2/visualization.html#andrews-curves shows how to do it for that version, or you could update your version of pandas and use the new location.