---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-73-6c8df178f6a4> in <module>()
----> 1 df['length'].plot(kind='barh', labels= df['name'])
c:\users\radhika\appdata\local\programs\python\python35-32\lib\site-packages\pandas\tools\plotting.py in __call__(self, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds)
   3564                            colormap=colormap, table=table, yerr=yerr,
   3565                            xerr=xerr, label=label, secondary_y=secondary_y,
-> 3566                            **kwds)
   3567     __call__.__doc__ = plot_series.__doc__
   3568 
c:\users\radhika\appdata\local\programs\python\python35-32\lib\site-packages\pandas\tools\plotting.py in plot_series(data, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds)
   2643                  yerr=yerr, xerr=xerr,
   2644                  label=label, secondary_y=secondary_y,
-> 2645                  **kwds)
   2646 
   2647 
c:\users\radhika\appdata\local\programs\python\python35-32\lib\site-packages\pandas\tools\plotting.py in _plot(data, x, y, subplots, ax, kind, **kwds)
   2439         plot_obj = klass(data, subplots=subplots, ax=ax, kind=kind, **kwds)
   2440 
-> 2441     plot_obj.generate()
   2442     plot_obj.draw()
   2443     return plot_obj.result
c:\users\radhika\appdata\local\programs\python\python35-32\lib\site-packages\pandas\tools\plotting.py in generate(self)
   1026         self._compute_plot_data()
   1027         self._setup_subplots()
-> 1028         self._make_plot()
   1029         self._add_table()
   1030         self._make_legend()
c:\users\radhika\appdata\local\programs\python\python35-32\lib\site-packages\pandas\tools\plotting.py in _make_plot(self)
   1969                 rect = self._plot(ax, self.ax_pos + (i + 0.5) * w, y, w,
   1970                                   start=start, label=label,
-> 1971                                   log=self.log, **kwds)
   1972             self._add_legend_handle(rect, label, index=i)
   1973 
c:\users\radhika\appdata\local\programs\python\python35-32\lib\site-packages\pandas\tools\plotting.py in _plot(cls, ax, x, y, w, start, log, **kwds)
   2003     @classmethod
   2004     def _plot(cls, ax, x, y, w, start=0, log=False, **kwds):
-> 2005         return ax.barh(x, y, w, left=start, log=log, **kwds)
   2006 
   2007     def _decorate_ticks(self, ax, name, ticklabels, start_edge, end_edge):
c:\users\radhika\appdata\local\programs\python\python35-32\lib\site-packages\matplotlib\axes\_axes.py in barh(self, bottom, width, height, left, **kwargs)
   2287 
   2288         patches = self.bar(left=left, height=height, width=width,
-> 2289                            bottom=bottom, orientation='horizontal', **kwargs)
   2290         return patches
   2291 
c:\users\radhika\appdata\local\programs\python\python35-32\lib\site-packages\matplotlib\__init__.py in inner(ax, *args, **kwargs)
   1810                     warnings.warn(msg % (label_namer, func.__name__),
   1811                                   RuntimeWarning, stacklevel=2)
-> 1812             return func(ax, *args, **kwargs)
   1813         pre_doc = inner.__doc__
   1814         if pre_doc is None:
c:\users\radhika\appdata\local\programs\python\python35-32\lib\site-packages\matplotlib\axes\_axes.py in bar(self, left, height, width, bottom, **kwargs)
   2129                 label='_nolegend_'
   2130                 )
-> 2131             r.update(kwargs)
   2132             r.get_path()._interpolation_steps = 100
   2133             #print r.get_label(), label, 'label' in kwargs
c:\users\radhika\appdata\local\programs\python\python35-32\lib\site-packages\matplotlib\artist.py in update(self, props)
    854                 func = getattr(self, 'set_' + k, None)
    855                 if func is None or not six.callable(func):
--> 856                     raise AttributeError('Unknown property %s' % k)
    857                 func(v)
    858             changed = True
AttributeError: Unknown property labels