Skip to content

Instantly share code, notes, and snippets.

@cpcloud
Created August 11, 2013 14:27
Show Gist options
  • Save cpcloud/6205120 to your computer and use it in GitHub Desktop.
Save cpcloud/6205120 to your computer and use it in GitHub Desktop.
list of `statsmodels` failures using `statsmodels@2d4aad9` and `jreback@44f2d42`
======================================================================
ERROR: statsmodels.datasets.tests.test_utils.test_get_rdataset
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/datasets/tests/test_utils.py", line 18, in test_get_rdataset
duncan = get_rdataset("Duncan", "car", cache=cur_dir)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/datasets/utils.py", line 250, in get_rdataset
title = _get_dataset_meta(dataname, package, cache)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/datasets/utils.py", line 202, in _get_dataset_meta
return dataset_meta["Title"].item()
File "/home/phillip/Documents/code/py/pandas/pandas/core/generic.py", line 1170, in __getattr__
(type(self).__name__, name))
AttributeError: 'Series' object has no attribute 'item'
======================================================================
ERROR: statsmodels.stats.tests.test_anova.TestAnova2.test_results
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/stats/tests/test_anova.py", line 133, in test_results
data).fit()
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/base/model.py", line 98, in from_formula
endog, exog = handle_formula_data(data, None, formula)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/formula/formulatools.py", line 45, in handle_formula_data
return dmatrices(formula, Y, 2, return_type='dataframe')
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 283, in dmatrices
return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 150, in _do_highlevel_design
return_type=return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 833, in build_design_matrices
value = evaluator.eval(data)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 102, in eval
result = atleast_2d_column_default(result, preserve_pandas=True)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/util.py", line 120, in atleast_2d_column_default
return pandas.DataFrame(a)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 415, in __init__
copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 521, in _init_ndarray
values = _prep_ndarray(values, copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 4853, in _prep_ndarray
if com.is_list_like(values[0]) or hasattr(values[0], 'len'):
File "/home/phillip/Documents/code/py/pandas/pandas/core/series.py", line 779, in __getitem__
return self.index.get_value(self, key)
File "/home/phillip/Documents/code/py/pandas/pandas/core/index.py", line 746, in get_value
return self._engine.get_value(s, k)
File "index.pyx", line 97, in pandas.index.IndexEngine.get_value (pandas/index.c:2882)
File "index.pyx", line 105, in pandas.index.IndexEngine.get_value (pandas/index.c:2694)
File "index.pyx", line 149, in pandas.index.IndexEngine.get_loc (pandas/index.c:3431)
File "hashtable.pyx", line 382, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6570)
File "hashtable.pyx", line 388, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6511)
KeyError: 0
======================================================================
ERROR: statsmodels.stats.tests.test_anova.TestAnova2HC0.test_results
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/stats/tests/test_anova.py", line 161, in test_results
data).fit()
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/base/model.py", line 98, in from_formula
endog, exog = handle_formula_data(data, None, formula)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/formula/formulatools.py", line 45, in handle_formula_data
return dmatrices(formula, Y, 2, return_type='dataframe')
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 283, in dmatrices
return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 150, in _do_highlevel_design
return_type=return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 833, in build_design_matrices
value = evaluator.eval(data)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 102, in eval
result = atleast_2d_column_default(result, preserve_pandas=True)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/util.py", line 120, in atleast_2d_column_default
return pandas.DataFrame(a)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 415, in __init__
copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 521, in _init_ndarray
values = _prep_ndarray(values, copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 4853, in _prep_ndarray
if com.is_list_like(values[0]) or hasattr(values[0], 'len'):
File "/home/phillip/Documents/code/py/pandas/pandas/core/series.py", line 779, in __getitem__
return self.index.get_value(self, key)
File "/home/phillip/Documents/code/py/pandas/pandas/core/index.py", line 746, in get_value
return self._engine.get_value(s, k)
File "index.pyx", line 97, in pandas.index.IndexEngine.get_value (pandas/index.c:2882)
File "index.pyx", line 105, in pandas.index.IndexEngine.get_value (pandas/index.c:2694)
File "index.pyx", line 149, in pandas.index.IndexEngine.get_loc (pandas/index.c:3431)
File "hashtable.pyx", line 382, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6570)
File "hashtable.pyx", line 388, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6511)
KeyError: 0
======================================================================
ERROR: statsmodels.stats.tests.test_anova.TestAnova2HC1.test_results
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/stats/tests/test_anova.py", line 188, in test_results
data).fit()
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/base/model.py", line 98, in from_formula
endog, exog = handle_formula_data(data, None, formula)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/formula/formulatools.py", line 45, in handle_formula_data
return dmatrices(formula, Y, 2, return_type='dataframe')
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 283, in dmatrices
return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 150, in _do_highlevel_design
return_type=return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 833, in build_design_matrices
value = evaluator.eval(data)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 102, in eval
result = atleast_2d_column_default(result, preserve_pandas=True)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/util.py", line 120, in atleast_2d_column_default
return pandas.DataFrame(a)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 415, in __init__
copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 521, in _init_ndarray
values = _prep_ndarray(values, copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 4853, in _prep_ndarray
if com.is_list_like(values[0]) or hasattr(values[0], 'len'):
File "/home/phillip/Documents/code/py/pandas/pandas/core/series.py", line 779, in __getitem__
return self.index.get_value(self, key)
File "/home/phillip/Documents/code/py/pandas/pandas/core/index.py", line 746, in get_value
return self._engine.get_value(s, k)
File "index.pyx", line 97, in pandas.index.IndexEngine.get_value (pandas/index.c:2882)
File "index.pyx", line 105, in pandas.index.IndexEngine.get_value (pandas/index.c:2694)
File "index.pyx", line 149, in pandas.index.IndexEngine.get_loc (pandas/index.c:3431)
File "hashtable.pyx", line 382, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6570)
File "hashtable.pyx", line 388, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6511)
KeyError: 0
======================================================================
ERROR: statsmodels.stats.tests.test_anova.TestAnova2HC2.test_results
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/stats/tests/test_anova.py", line 215, in test_results
data).fit()
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/base/model.py", line 98, in from_formula
endog, exog = handle_formula_data(data, None, formula)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/formula/formulatools.py", line 45, in handle_formula_data
return dmatrices(formula, Y, 2, return_type='dataframe')
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 283, in dmatrices
return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 150, in _do_highlevel_design
return_type=return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 833, in build_design_matrices
value = evaluator.eval(data)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 102, in eval
result = atleast_2d_column_default(result, preserve_pandas=True)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/util.py", line 120, in atleast_2d_column_default
return pandas.DataFrame(a)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 415, in __init__
copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 521, in _init_ndarray
values = _prep_ndarray(values, copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 4853, in _prep_ndarray
if com.is_list_like(values[0]) or hasattr(values[0], 'len'):
File "/home/phillip/Documents/code/py/pandas/pandas/core/series.py", line 779, in __getitem__
return self.index.get_value(self, key)
File "/home/phillip/Documents/code/py/pandas/pandas/core/index.py", line 746, in get_value
return self._engine.get_value(s, k)
File "index.pyx", line 97, in pandas.index.IndexEngine.get_value (pandas/index.c:2882)
File "index.pyx", line 105, in pandas.index.IndexEngine.get_value (pandas/index.c:2694)
File "index.pyx", line 149, in pandas.index.IndexEngine.get_loc (pandas/index.c:3431)
File "hashtable.pyx", line 382, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6570)
File "hashtable.pyx", line 388, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6511)
KeyError: 0
======================================================================
ERROR: statsmodels.stats.tests.test_anova.TestAnova2HC3.test_results
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/stats/tests/test_anova.py", line 243, in test_results
data).fit()
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/base/model.py", line 98, in from_formula
endog, exog = handle_formula_data(data, None, formula)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/formula/formulatools.py", line 45, in handle_formula_data
return dmatrices(formula, Y, 2, return_type='dataframe')
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 283, in dmatrices
return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 150, in _do_highlevel_design
return_type=return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 833, in build_design_matrices
value = evaluator.eval(data)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 102, in eval
result = atleast_2d_column_default(result, preserve_pandas=True)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/util.py", line 120, in atleast_2d_column_default
return pandas.DataFrame(a)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 415, in __init__
copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 521, in _init_ndarray
values = _prep_ndarray(values, copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 4853, in _prep_ndarray
if com.is_list_like(values[0]) or hasattr(values[0], 'len'):
File "/home/phillip/Documents/code/py/pandas/pandas/core/series.py", line 779, in __getitem__
return self.index.get_value(self, key)
File "/home/phillip/Documents/code/py/pandas/pandas/core/index.py", line 746, in get_value
return self._engine.get_value(s, k)
File "index.pyx", line 97, in pandas.index.IndexEngine.get_value (pandas/index.c:2882)
File "index.pyx", line 105, in pandas.index.IndexEngine.get_value (pandas/index.c:2694)
File "index.pyx", line 149, in pandas.index.IndexEngine.get_loc (pandas/index.c:3431)
File "hashtable.pyx", line 382, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6570)
File "hashtable.pyx", line 388, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6511)
KeyError: 0
======================================================================
ERROR: statsmodels.stats.tests.test_anova.TestAnova3.test_results
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/stats/tests/test_anova.py", line 270, in test_results
data).fit()
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/base/model.py", line 98, in from_formula
endog, exog = handle_formula_data(data, None, formula)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/formula/formulatools.py", line 45, in handle_formula_data
return dmatrices(formula, Y, 2, return_type='dataframe')
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 283, in dmatrices
return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 150, in _do_highlevel_design
return_type=return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 833, in build_design_matrices
value = evaluator.eval(data)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 102, in eval
result = atleast_2d_column_default(result, preserve_pandas=True)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/util.py", line 120, in atleast_2d_column_default
return pandas.DataFrame(a)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 415, in __init__
copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 521, in _init_ndarray
values = _prep_ndarray(values, copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 4853, in _prep_ndarray
if com.is_list_like(values[0]) or hasattr(values[0], 'len'):
File "/home/phillip/Documents/code/py/pandas/pandas/core/series.py", line 779, in __getitem__
return self.index.get_value(self, key)
File "/home/phillip/Documents/code/py/pandas/pandas/core/index.py", line 746, in get_value
return self._engine.get_value(s, k)
File "index.pyx", line 97, in pandas.index.IndexEngine.get_value (pandas/index.c:2882)
File "index.pyx", line 105, in pandas.index.IndexEngine.get_value (pandas/index.c:2694)
File "index.pyx", line 149, in pandas.index.IndexEngine.get_loc (pandas/index.c:3431)
File "hashtable.pyx", line 382, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6570)
File "hashtable.pyx", line 388, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6511)
KeyError: 0
======================================================================
ERROR: statsmodels.stats.tests.test_anova.TestAnova3HC0.test_results
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/stats/tests/test_anova.py", line 298, in test_results
data).fit()
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/base/model.py", line 98, in from_formula
endog, exog = handle_formula_data(data, None, formula)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/formula/formulatools.py", line 45, in handle_formula_data
return dmatrices(formula, Y, 2, return_type='dataframe')
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 283, in dmatrices
return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 150, in _do_highlevel_design
return_type=return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 833, in build_design_matrices
value = evaluator.eval(data)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 102, in eval
result = atleast_2d_column_default(result, preserve_pandas=True)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/util.py", line 120, in atleast_2d_column_default
return pandas.DataFrame(a)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 415, in __init__
copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 521, in _init_ndarray
values = _prep_ndarray(values, copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 4853, in _prep_ndarray
if com.is_list_like(values[0]) or hasattr(values[0], 'len'):
File "/home/phillip/Documents/code/py/pandas/pandas/core/series.py", line 779, in __getitem__
return self.index.get_value(self, key)
File "/home/phillip/Documents/code/py/pandas/pandas/core/index.py", line 746, in get_value
return self._engine.get_value(s, k)
File "index.pyx", line 97, in pandas.index.IndexEngine.get_value (pandas/index.c:2882)
File "index.pyx", line 105, in pandas.index.IndexEngine.get_value (pandas/index.c:2694)
File "index.pyx", line 149, in pandas.index.IndexEngine.get_loc (pandas/index.c:3431)
File "hashtable.pyx", line 382, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6570)
File "hashtable.pyx", line 388, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6511)
KeyError: 0
======================================================================
ERROR: statsmodels.stats.tests.test_anova.TestAnova3HC1.test_results
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/stats/tests/test_anova.py", line 325, in test_results
data).fit()
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/base/model.py", line 98, in from_formula
endog, exog = handle_formula_data(data, None, formula)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/formula/formulatools.py", line 45, in handle_formula_data
return dmatrices(formula, Y, 2, return_type='dataframe')
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 283, in dmatrices
return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 150, in _do_highlevel_design
return_type=return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 833, in build_design_matrices
value = evaluator.eval(data)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 102, in eval
result = atleast_2d_column_default(result, preserve_pandas=True)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/util.py", line 120, in atleast_2d_column_default
return pandas.DataFrame(a)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 415, in __init__
copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 521, in _init_ndarray
values = _prep_ndarray(values, copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 4853, in _prep_ndarray
if com.is_list_like(values[0]) or hasattr(values[0], 'len'):
File "/home/phillip/Documents/code/py/pandas/pandas/core/series.py", line 779, in __getitem__
return self.index.get_value(self, key)
File "/home/phillip/Documents/code/py/pandas/pandas/core/index.py", line 746, in get_value
return self._engine.get_value(s, k)
File "index.pyx", line 97, in pandas.index.IndexEngine.get_value (pandas/index.c:2882)
File "index.pyx", line 105, in pandas.index.IndexEngine.get_value (pandas/index.c:2694)
File "index.pyx", line 149, in pandas.index.IndexEngine.get_loc (pandas/index.c:3431)
File "hashtable.pyx", line 382, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6570)
File "hashtable.pyx", line 388, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6511)
KeyError: 0
======================================================================
ERROR: statsmodels.stats.tests.test_anova.TestAnova3HC2.test_results
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/stats/tests/test_anova.py", line 352, in test_results
data).fit()
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/base/model.py", line 98, in from_formula
endog, exog = handle_formula_data(data, None, formula)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/formula/formulatools.py", line 45, in handle_formula_data
return dmatrices(formula, Y, 2, return_type='dataframe')
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 283, in dmatrices
return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 150, in _do_highlevel_design
return_type=return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 833, in build_design_matrices
value = evaluator.eval(data)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 102, in eval
result = atleast_2d_column_default(result, preserve_pandas=True)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/util.py", line 120, in atleast_2d_column_default
return pandas.DataFrame(a)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 415, in __init__
copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 521, in _init_ndarray
values = _prep_ndarray(values, copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 4853, in _prep_ndarray
if com.is_list_like(values[0]) or hasattr(values[0], 'len'):
File "/home/phillip/Documents/code/py/pandas/pandas/core/series.py", line 779, in __getitem__
return self.index.get_value(self, key)
File "/home/phillip/Documents/code/py/pandas/pandas/core/index.py", line 746, in get_value
return self._engine.get_value(s, k)
File "index.pyx", line 97, in pandas.index.IndexEngine.get_value (pandas/index.c:2882)
File "index.pyx", line 105, in pandas.index.IndexEngine.get_value (pandas/index.c:2694)
File "index.pyx", line 149, in pandas.index.IndexEngine.get_loc (pandas/index.c:3431)
File "hashtable.pyx", line 382, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6570)
File "hashtable.pyx", line 388, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6511)
KeyError: 0
======================================================================
ERROR: statsmodels.stats.tests.test_anova.TestAnova3HC3.test_results
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/stats/tests/test_anova.py", line 379, in test_results
data).fit()
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/base/model.py", line 98, in from_formula
endog, exog = handle_formula_data(data, None, formula)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/formula/formulatools.py", line 45, in handle_formula_data
return dmatrices(formula, Y, 2, return_type='dataframe')
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 283, in dmatrices
return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/highlevel.py", line 150, in _do_highlevel_design
return_type=return_type)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 833, in build_design_matrices
value = evaluator.eval(data)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/build.py", line 102, in eval
result = atleast_2d_column_default(result, preserve_pandas=True)
File "/home/phillip/.virtualenvs/pandas/lib/python2.7/site-packages/patsy/util.py", line 120, in atleast_2d_column_default
return pandas.DataFrame(a)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 415, in __init__
copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 521, in _init_ndarray
values = _prep_ndarray(values, copy=copy)
File "/home/phillip/Documents/code/py/pandas/pandas/core/frame.py", line 4853, in _prep_ndarray
if com.is_list_like(values[0]) or hasattr(values[0], 'len'):
File "/home/phillip/Documents/code/py/pandas/pandas/core/series.py", line 779, in __getitem__
return self.index.get_value(self, key)
File "/home/phillip/Documents/code/py/pandas/pandas/core/index.py", line 746, in get_value
return self._engine.get_value(s, k)
File "index.pyx", line 97, in pandas.index.IndexEngine.get_value (pandas/index.c:2882)
File "index.pyx", line 105, in pandas.index.IndexEngine.get_value (pandas/index.c:2694)
File "index.pyx", line 149, in pandas.index.IndexEngine.get_loc (pandas/index.c:3431)
File "hashtable.pyx", line 382, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6570)
File "hashtable.pyx", line 388, in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6511)
KeyError: 0
======================================================================
ERROR: statsmodels.tools.tests.test_tools.test_pandas_const_series
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/tools/tests/test_tools.py", line 360, in test_pandas_const_series
series = tools.add_constant(series, prepend=False)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/tools/tools.py", line 287, in add_constant
return _pandas_add_constant(data.copy(), prepend)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/tools/tools.py", line 256, in _pandas_add_constant
return _series_add_constant(data, prepend)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/tools/tools.py", line 234, in _series_add_constant
const.name = 'const'
AttributeError: 'numpy.ndarray' object has no attribute 'name'
======================================================================
ERROR: statsmodels.tools.tests.test_tools.test_pandas_const_series_prepend
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/phillip/.virtualenvs/pandas/src/nose/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/tools/tests/test_tools.py", line 367, in test_pandas_const_series_prepend
series = tools.add_constant(series, prepend=True)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/tools/tools.py", line 287, in add_constant
return _pandas_add_constant(data.copy(), prepend)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/tools/tools.py", line 256, in _pandas_add_constant
return _series_add_constant(data, prepend)
File "/home/phillip/Documents/code/py/statsmodels/statsmodels/tools/tools.py", line 234, in _series_add_constant
const.name = 'const'
AttributeError: 'numpy.ndarray' object has no attribute 'name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment