Installing Pandas

sudo apt-get install python-numpy cython
This will install a fast numeric processing library (numpy) and a tool required in the pandas build process (cython).
Test numpy
Open up a Python prompt by running the following:
python
At the prompt, type the following:
 >>> import numpy
 >>> print numpy.__version__
You should see a number like "1.6.1" or higher.
Test cython
Open up a Python prompt by running the following:
python
At the prompt, type the following (capitalization matters!):
 >>> import Cython
 >>> print Cython.__version__
You should see a number like "0.15.1" or higher.
Download pandas
We recommend storing pandas in a directory called ''projects'' in your user directory. To do that, run the following commands:
mkdir -p ~/projects
cd ~/projects
git clone https://github.com/pydata/pandas.git
cd pandas
You will see git download pandas. Once the download finishes, and you get your prompt back, proceed to the next step.
Build pandas
To build pandas, you have to run the following two commands:
python setup.py build_ext --inplace
This will take about 2 minutes. Once it is finished, run this command:
python setup.py build
This will also take about 2 minutes.
Test pandas
To make sure it has built properly, run the following command inside the pandas directory:
python
Within this python prompt, type:
 >>> import pandas
 >>> print pandas.__version__
 With this we are done with installing " Pandas ".
 

Final words :

Hope this helps !!! Follow me as I write about Algorithms ,Competitive Programming , Python , Web Development,Machine Learning and Data Science and don’t waste your time by writing rubbish,irrelevant or long answers . Have a nice day !!!  
You can check out my recent projects on GitHub.
Happy Coding !! 

Comments

Popular posts from this blog

Number theory Part-2