Pandas library installation and import in python

 Here we will discuss how to install and import pandas library in python 

--------------------------------------------------------------------------------------------

i) Before this , just go through the installation of python and anaconda  by clicking the below link,

Install Python and anaconda


ii) Now we have installed the latest version of python in our windows machine and the anaconda platform for windows which contain jupyter notebook and spyder types python editer.


iii) So now we will install pandas library in python and will try to import it in the spyder editor.


---_--_____--_-___-___

Step 1

---_--_____--_-___-___


open python by searching it through the search bar.

Run as administrator.



Open the Anaconda prompt by searching it's name in windows search bar and run it as "run as administrator"



Now The anaconda prompt will be opened.

Then run the command pip install pandas 


After running the command pip install pandas, pandas library will be installed in the anaconda prompt for use.As per the above screen shots.


---_--_____--_-___-___

Step 2

---_--_____--_-___-___


Now to import and use that library , lets open spyder editer from anaconda and then try the command to import pandas.

***

Go to search bar and search anaconda.

Then select anaconda navigator and open by run as administrator


Below screen shot shows  the Anaconda Graphical mode ...


As per the above image select the launch button under the spyder editor to open the editor.

Select launch.



Now the spyder editor is initializing and will be open soon.


This is the spyder Editor home screen...


---_--_____--_-___-___

Step 3

---_--_____--_-___-___


Now we have to run 1st command to import Pandas library

import pandas


Then second command to check it's working 

help(pandas)

//This command shows the version information along with a lot of information of pandas library 


lets see...

Now as per above image you can see pandas is imported and the command help is also working fine.I will attach some screen shot below about the output of the command help(pandas).



















*** And this was the end of the lesson for installing Pandas library.





#installPandas

#installPandasLibrary

#pandas

#pandasLibrary

#pythonLibrary

#spyder

#python

#Anaconda

#datascience

Comments

Popular posts from this blog

Java Interview Preparation (conceptual)

Git Commands With Output Log

Java 8 Function Interface