Code Monkey home page Code Monkey logo

Comments (6)

wesm avatar wesm commented on May 21, 2024

Um, you installed pandas from the git repo or from PyPI (either is fine)? As you can see I haven't touched the examples in quite a while, and for example I removed the deprecated fillMethod argument from reindex very recently. I plan to make a pass through the docs in the next week or two to update them given all the work I've been putting in on the library. Thanks for letting me know about the examples, I'll take a look and fix them up to be in line with the present API.

The second error is rather weird. I would strongly suggest upgrading your scikits.statsmodels and trying again:

http://pypi.python.org/pypi/scikits.statsmodels/

Let me know

from pandas.

wesm avatar wesm commented on May 21, 2024

I updated the examples and the online docs per your comments. I need to write significantly more docs in the near future to document new features. Stay tuned.

Let me know if you're still having problems with regressions after you update statsmodels!

from pandas.

columW avatar columW commented on May 21, 2024

I installed pandas from the git repo, and have updated scikits.statsmodels using easy_install. The error from regressions.py is the same. I'm using version scikits.statsmodels 0.3.0rc1.

from pandas.

wesm avatar wesm commented on May 21, 2024

Can you type

import scikits.statsmodels.api as api

into a python shell

then

api.OLS

and let me know what it says

from pandas.

columW avatar columW commented on May 21, 2024

typing

import scikits.statsmodels.api as api

gives me

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/dist-packages/scikits.statsmodels-0.3.0rc1-py2.6.egg/scikits/statsmodels/api.py", line 1, in <module>
import iolib, datasets, tools
File "/usr/local/lib/python2.6/dist-packages/scikits.statsmodels-0.3.0rc1-py2.6.egg/scikits/statsmodels/iolib/__init__.py", line 1, in <module>
from foreign import StataReader, genfromdta, savetxt
File "/usr/local/lib/python2.6/dist-packages/scikits.statsmodels-0.3.0rc1-py2.6.egg/scikits/statsmodels/iolib/foreign.py", line 16, in <module>
from numpy.lib._iotools import _is_string_like, easy_dtype

easy_dtype does exist in lib._iotools in the current version of numpy, but not in the version I have, installed using apt-get (I think I have 1.3.0).
I'll install the current version of numpy, and see if that works.

Thanks for the help!

from pandas.

wesm avatar wesm commented on May 21, 2024

Ah, that is indeed the problem. See about upgrading to NumPy 1.6. The issue was that I caught an ImportError in pandas when the import convention from statsmodels changed. I can probably get rid of that which will make these errors easier to spot

from pandas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.