Regression

tests.test_model.TestCorpus.test_cull (from pytest)

Failing for the past 1 build (Since #74 )
Took 1 ms.

This test is unclaimed

Error Message

ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

Stacktrace

self = <test_model.TestCorpus object at 0x7fbb402acb38>
corpus = <cophi.model.Corpus object at 0x7fbb4024fac8>

    def test_cull(self, corpus):
>       assert corpus.cull(corpus.dtm, 1).sum().sum() == len(TOKENS)

tests/test_model.py:213: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
src/cophi/model.py:469: in cull
    if ratio > 1:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self =              a     b     c      d      e      f
document  True  True  True  False  False  False

    def __nonzero__(self):
        raise ValueError("The truth value of a {0} is ambiguous. "
                         "Use a.empty, a.bool(), a.item(), a.any() or a.all()."
>                        .format(self.__class__.__name__))
E       ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

.tox/py35/lib/python3.5/site-packages/pandas/core/generic.py:1576: ValueError