"No module named statsmodels.api" in Detailed Trading Report

Good morning.

Received the exception "No module named statsmodels.api" when I downloaded a Detailed Trading Report.

Thanks.

Comments

  • Same here. Does not work even if trying to "build" html directly from jupyter notebook.

  • ptunneyptunney Posts: 246

    Looks like the API was not updated in a recent build. Please give it another try.

  • aj165602aj165602 Posts: 105

    Thanks. It now gives the following error:

    Traceback (most recent call last):
    File "", line 5, in
    testReport = reportGenerator(returnType='log', includeFees=True, rootDir=rootDir)
    File "", line 179, in init
    self.capitalUsage.sort_values('date', inplace=True)
    File "/opt/anaconda/lib/python2.7/site-packages/pandas/core/frame.py", line 4719, in sort_values
    k = self._get_label_or_level_values(by, axis=axis)
    File "/opt/anaconda/lib/python2.7/site-packages/pandas/core/generic.py", line 1701, in _get_label_or_level_values
    self._check_label_or_level_ambiguity(key, axis=axis)
    File "/opt/anaconda/lib/python2.7/site-packages/pandas/core/generic.py", line 1655, in _check_label_or_level_ambiguity
    raise ValueError(msg)
    ValueError: 'date' is both an index level and a column label, which is ambiguous.

Sign In or Register to comment.