Skip to content

Instantly share code, notes, and snippets.

@klonuo
Created September 18, 2014 16:16
Show Gist options
  • Save klonuo/cb45d6f160dc17b7d458 to your computer and use it in GitHub Desktop.
Save klonuo/cb45d6f160dc17b7d458 to your computer and use it in GitHub Desktop.
======================================================================
ERROR: test_encode (pandas.io.tests.test_html.TestReadHtmlEncodingLxml)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\src\pandas\pandas\io\tests\test_html.py", line 654, in test_encode
from_string = self.read_string(f, encoding).pop()
File "C:\src\pandas\pandas\io\tests\test_html.py", line 648, in read_string
return self.read_html(fobj.read(), encoding=encoding, index_col=0)
File "C:\src\pandas\pandas\io\tests\test_html.py", line 636, in read_html
return read_html(*args, **kwargs)
File "C:\src\pandas\pandas\io\html.py", line 851, in read_html
parse_dates, tupleize_cols, thousands, attrs, encoding)
File "C:\src\pandas\pandas\io\html.py", line 712, in _parse
raise_with_traceback(retained)
File "C:\src\pandas\pandas\io\html.py", line 706, in _parse
tables = p.parse_tables()
File "C:\src\pandas\pandas\io\html.py", line 181, in parse_tables
tables = self._parse_tables(self._build_doc(), self.match, self.attrs)
File "C:\src\pandas\pandas\io\html.py", line 543, in _build_doc
r = fromstring(self.io, parser=parser)
File "c:\python27\lib\site-packages\lxml\html\__init__.py", line 723, in fromstring
doc = document_fromstring(html, parser=parser, base_url=base_url, **kw)
File "c:\python27\lib\site-packages\lxml\html\__init__.py", line 613, in document_fromstring
value = etree.fromstring(html, parser, **kw)
File "lxml.etree.pyx", line 3092, in lxml.etree.fromstring (src\lxml\lxml.etree.c:70691)
File "parser.pxi", line 1828, in lxml.etree._parseMemoryDocument (src\lxml\lxml.etree.c:106689)
File "parser.pxi", line 1716, in lxml.etree._parseDoc (src\lxml\lxml.etree.c:105478)
File "parser.pxi", line 1086, in lxml.etree._BaseParser._parseDoc (src\lxml\lxml.etree.c:100105)
File "parser.pxi", line 580, in lxml.etree._ParserContext._handleParseResultDoc (src\lxml\lxml.etree.c:94543)
File "parser.pxi", line 690, in lxml.etree._handleParseResult (src\lxml\lxml.etree.c:96003)
File "parser.pxi", line 620, in lxml.etree._raiseParseError (src\lxml\lxml.etree.c:95050)
XMLSyntaxError: Unexpected end tag : td, line 6, column 38
======================================================================
ERROR: test_boxplot_empty_column (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\src\pandas\pandas\tests\test_graphics.py", line 1926, in test_boxplot_empty_column
_check_plot_works(df.boxplot, return_type='axes')
File "C:\src\pandas\pandas\tests\test_graphics.py", line 3262, in _check_plot_works
ret = f(*args, **kwargs)
File "C:\src\pandas\pandas\core\frame.py", line 4921, in boxplot
**kwds)
File "C:\src\pandas\pandas\tools\plotting.py", line 2625, in boxplot
result = plot_group(columns, data.values.T, ax)
File "C:\src\pandas\pandas\tools\plotting.py", line 2576, in plot_group
bp = ax.boxplot(values, **kwds)
File "c:\python27\lib\site-packages\matplotlib\axes\_axes.py", line 3045, in boxplot
labels=labels)
File "c:\python27\lib\site-packages\matplotlib\cbook.py", line 1965, in boxplot_stats
q1, med, q3 = np.percentile(x, [25, 50, 75])
File "c:\python27\lib\site-packages\numpy\lib\function_base.py", line 3042, in percentile
interpolation=interpolation)
File "c:\python27\lib\site-packages\numpy\lib\function_base.py", line 2791, in _ureduce
r = func(a, **kwargs)
File "c:\python27\lib\site-packages\numpy\lib\function_base.py", line 3131, in _percentile
x1 = take(ap, indices_below, axis=axis) * weights_below
File "c:\python27\lib\site-packages\numpy\core\fromnumeric.py", line 121, in take
return take(indices, axis, out, mode)
IndexError: cannot do a non-empty take from an empty axes.
======================================================================
ERROR: test_to_excel (pandas.tests.test_panel.TestPanel)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\src\pandas\pandas\tests\test_panel.py", line 1851, in test_to_excel
self.panel.to_excel(path)
File "C:\src\pandas\pandas\core\panel.py", line 432, in to_excel
writer = ExcelWriter(path, engine=engine)
File "C:\src\pandas\pandas\io\excel.py", line 539, in __init__
openpyxl_compat.stop_ver))
ValueError: Installed openpyxl is not supported at this time. Use >=1.6.1 and <2.0.0.
======================================================================
FAIL: test_boxplot (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\src\pandas\pandas\tests\test_graphics.py", line 1740, in test_boxplot
self.assertEqual(len(ax.lines), 8 * len(numeric_cols))
AssertionError: 21 != 24
======================================================================
FAIL: test_boxplot_vertical (pandas.tests.test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\src\pandas\pandas\tests\test_graphics.py", line 1774, in test_boxplot_vertical
self.assertEqual(len(ax.lines), 8 * len(numeric_cols))
AssertionError: 21 != 24
----------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment