Failed

tests.test_api.test_export (from pytest)

Failing for the past 2 builds (Since #82 )
Took 1 ms.

This test is unclaimed

Error Message

AttributeError: 'function' object has no attribute 'iterrows'

Stacktrace

corpus = <cophi.model.Corpus object at 0x7f5f1dda50b8>

    def test_export(corpus):
        output = pathlib.Path("corpus.svmlight")
>       cophi.export(corpus.dtm, output, "svmlight")

tests/test_api.py:35: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
src/cophi/api.py:98: in export
    cophi.utils.export_svmlight(corpus, filepath)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

dtm = <function corpus at 0x7f5f1f5a58c8>
filepath = PosixPath('corpus.svmlight')

    def export_svmlight(dtm, filepath):
        """Export document-term matrix to SVMLight format.
    
        Parameters:
            dtm: Document-term matrix.
            filepath: Path to output file.
        """
        with pathlib.Path(filepath).open("w", encoding="utf-8") as file:
>           for title, document in dtm.iterrows():
E           AttributeError: 'function' object has no attribute 'iterrows'

src/cophi/utils.py:126: AttributeError