O'Reilly logo

NumPy Cookbook - Second Edition by Ivan Idris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing statsmodels

The statsmodels package focuses on statistical modeling. We can integrate it with NumPy and pandas (more about pandas later in this chapter).

How to do it...

Source and binaries can be downloaded from http://statsmodels.sourceforge.net/install.html. If you are installing from source, run the following command:

$ python setup.py install

If you are using setuptools, the command is as follows:

$ easy_install statsmodels

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required