Skip to content

examples not running, error in documentation #51

Closed
@columW

Description

@columW

Both examples do not run. In finance.py, on line 83:

 filledRatio = ibm / ibmMonthly.reindex(ibm.index, fillMethod='pad')

should be:

 filledRatio = ibm / ibmMonthly.reindex(ibm.index, method='pad')

As reindex is defined in core/series.py as

 def reindex(self, index=None, method=None):

This error is repeated in the documentation at http://pandas.sourceforge.net (reindex uses the argument fillMethod instead of method).

running regressions.py, I get the following error:

Traceback (most recent call last):
File "regressions.py", line 30, in
model = ols(y=Y, x=X)
File "/usr/local/lib/python2.6/dist-packages/pandas/stats/interface.py", line 117, in ols
return klass(**kwargs)
File "/usr/local/lib/python2.6/dist-packages/pandas/stats/ols.py", line 56, in init
self.sm_ols = sm.OLS(self._y_raw, self._x.values).fit()
AttributeError: 'module' object has no attribute 'OLS'

It's possible I'm somehow combining incompatible versions of pandas, but I don't see how, considering I downloaded pandas today, once. The first bug, at least seems like a simple code error.

Hopefully this is of some help,
Colum

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions