Skip to content

Instantly share code, notes, and snippets.

@mitya57
Created July 2, 2013 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitya57/5910851 to your computer and use it in GitHub Desktop.
Save mitya57/5910851 to your computer and use it in GitHub Desktop.
======================================================================
ERROR: test_format_sparse_config (pandas.tests.test_index.TestMultiIndex)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pandas/tests/test_index.py", line 1378, in test_format_sparse_config
pd.reset_printoptions()
File "/usr/lib/python2.7/dist-packages/pandas/core/format.py", line 1643, in reset_printoptions
reset_option("^display\.")
File "/usr/lib/python2.7/dist-packages/pandas/core/config.py", line 196, in __call__
return self.__func__(*args, **kwds)
File "/usr/lib/python2.7/dist-packages/pandas/core/config.py", line 141, in _reset_option
_set_option(k, _registered_options[k].defval)
File "/usr/lib/python2.7/dist-packages/pandas/core/config.py", line 109, in _set_option
o.cb(key)
File "/usr/lib/python2.7/dist-packages/pandas/core/config_init.py", line 196, in mpl_style_cb
import matplotlib.pyplot as plt
File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 23, in <module>
from matplotlib.figure import Figure, figaspect
File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 18, in <module>
from axes import Axes, SubplotBase, subplot_class_factory
File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 14, in <module>
import matplotlib.axis as maxis
File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 10, in <module>
import matplotlib.font_manager as font_manager
File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 1325, in <module>
_rebuild()
File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 1275, in _rebuild
fontManager = FontManager()
File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 999, in __init__
self.afmlist = createFontList(self.afmfiles, fontext='afm')
File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 567, in createFontList
prop = afmFontProperty(fpath, font)
File "/usr/lib/pymodules/python2.7/matplotlib/font_manager.py", line 484, in afmFontProperty
if font.get_angle() != 0 or name.lower().find('italic') >= 0:
File "/usr/lib/pymodules/python2.7/matplotlib/afm.py", line 468, in get_angle
return self._header['ItalicAngle']
KeyError: 'ItalicAngle'
======================================================================
ERROR: test_to_html (pandas.tests.test_multilevel.TestMultiLevel)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pandas/tests/test_multilevel.py", line 1416, in test_to_html
self.ymd.to_html()
File "/usr/lib/python2.7/dist-packages/pandas/core/frame.py", line 1532, in to_html
formatter.to_html(classes=classes)
File "/usr/lib/python2.7/dist-packages/pandas/core/format.py", line 412, in to_html
html_renderer.write_result(self.buf)
File "/usr/lib/python2.7/dist-packages/pandas/core/format.py", line 591, in write_result
indent = self._write_body(indent)
File "/usr/lib/python2.7/dist-packages/pandas/core/format.py", line 682, in _write_body
self._write_hierarchical_rows(fmt_values, indent)
File "/usr/lib/python2.7/dist-packages/pandas/core/format.py", line 756, in _write_hierarchical_rows
nindex_levels=len(frame.index.nlevels))
TypeError: object of type 'int' has no len()
======================================================================
FAIL: test_multilevel_name_print (pandas.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pandas/tests/test_series.py", line 156, in test_multilevel_name_print
self.assertEquals(repr(s), expected)
AssertionError: 'first second\nfoo one 0\nfoo two 1\nfoo three 2\nbar one 3\nbar two 4\nbaz two 5\nbaz three 6\nqux one 7\nqux two 8\nqux three 9\nName: sth, dtype: int64' != 'first second\nfoo one 0\n two 1\n three 2\nbar one 3\n two 4\nbaz two 5\n three 6\nqux one 7\n two 8\n three 9\nName: sth, dtype: int64'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment