---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-13-f9a8f1b9e050> in <module>()
----> 1 ggplot(aes(x="price"), data=diamonds) +    geom_histogram() +    facet_grid("cut", "clarity", scales="free_y")
/usr/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc in __call__(self, result)
    245             self.start_displayhook()
    246             self.write_output_prompt()
--> 247             format_dict, md_dict = self.compute_format_data(result)
    248             self.write_format_data(format_dict, md_dict)
    249             self.update_user_ns(result)
/usr/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc in compute_format_data(self, result)
    155 
    156         """
--> 157         return self.shell.display_formatter.format(result)
    158 
    159     def write_format_data(self, format_dict, md_dict=None):
/usr/local/lib/python2.7/site-packages/IPython/core/formatters.pyc in format(self, obj, include, exclude)
    150             md = None
    151             try:
--> 152                 data = formatter(obj)
    153             except:
    154                 # FIXME: log the exception
/usr/local/lib/python2.7/site-packages/IPython/core/formatters.pyc in __call__(self, obj)
    479                 type_pprinters=self.type_printers,
    480                 deferred_pprinters=self.deferred_printers)
--> 481             printer.pretty(obj)
    482             printer.flush()
    483             return stream.getvalue()
/usr/local/lib/python2.7/site-packages/IPython/lib/pretty.pyc in pretty(self, obj)
    360                             if callable(meth):
    361                                 return meth(obj, self, cycle)
--> 362             return _default_pprint(obj, self, cycle)
    363         finally:
    364             self.end_group()
/usr/local/lib/python2.7/site-packages/IPython/lib/pretty.pyc in _default_pprint(obj, p, cycle)
    480     if getattr(klass, '__repr__', None) not in _baseclass_reprs:
    481         # A user-provided repr.
--> 482         p.text(repr(obj))
    483         return
    484     p.begin_group(1, '<')
/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ggplot-0.5.7-py2.7.egg/ggplot/ggplot.pyc in __repr__(self)
    108     def __repr__(self):
    109         """Print/show the plot"""
--> 110         figure = self.draw()
    111         # We're going to default to making the plot appear when __repr__ is
    112         # called.
/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ggplot-0.5.7-py2.7.egg/ggplot/ggplot.pyc in draw(self)
    210                         for geom in self.geoms:
    211                             ax = plt.gca()
--> 212                             callbacks = geom.plot_layer(frame, ax)
    213                         axis_extremes[_iter] = [min(plt.xlim()), max(plt.xlim()),
    214                                                 min(plt.ylim()), max(plt.ylim())]
/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ggplot-0.5.7-py2.7.egg/ggplot/geoms/geom.pyc in plot_layer(self, data, ax)
    113         _cols = set(data.columns) & set(self.manual_aes)
    114         data = data.drop(_cols, axis=1)
--> 115         data = self._calculate_stats(data)
    116         self._verify_aesthetics(data)
    117         _needed = self.valid_aes | self._extra_requires
/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ggplot-0.5.7-py2.7.egg/ggplot/geoms/geom.pyc in _calculate_stats(self, data)
    273                 new_data = new_data.append(_data, ignore_index=True)
    274         else:
--> 275             new_data = self._stat._calculate(data)
    276 
    277         # some geoms expect a sorted x domain
/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ggplot-0.5.7-py2.7.egg/ggplot/stats/stat_bin.pyc in _calculate(self, data)
     90             empty_bins = set(range(len(x))) - set(x_assignments)
     91             for _b in empty_bins:
---> 92                 _wfreq_table[_b] = 0
     93             _wfreq_table = _wfreq_table.sort_index()
     94 
/usr/local/lib/python2.7/site-packages/pandas/core/series.pyc in __setitem__(self, key, value)
    829                 return
    830 
--> 831             raise KeyError('%s not in this series!' % str(key))
    832         except TypeError, e:
    833             # python 3 type errors should be raised
KeyError: '14 not in this series!'