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 pandas

pandas is a Python library used for data analysis. It has some similarities with the R programming language, which are not coincidental. R is a specialized programming language popular with data scientists. For instance, R inspired the core DataFrame object in pandas.

How to do it...

On PyPi, the project is called pandas. So, you can run either of the following commands:

$ sudo easy_install -U pandas
$ pip install pandas

If you are using a Linux package manager, you will need to install the python-pandas project. On Ubuntu, do the following:

$ sudo apt-get install python-pandas

You can also install from source (this requires Git unless you download a source archive):

$ git clone git://github.com/pydata/pandas.git 
$ cd pandas 

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