Ticker

6/recent/ticker-posts

Pandas library in Python for data science:

 Pandas library in Python for data science:

Pandas is a open source python library built on top of NumPy library. Pandas is the short form of “Panel Data”. It is widely used in data science and data analytics tool.

Installation and getting started:

Before starting to work with pandas, it has to be installed. To install pandas go to your command prompt and type pip install pandas.

For getting started type the following code

Import pandas as pd

Creating data frame in Pandas:

Pandas can be used to create dataframe. It used to handle missing datas, merge, join and concatenate dataframes.

 

Creating dataframe in pandas using dictionary

Csv and excel files also can be read using pandas. To read csv and excel files type the following code.

Df=pd.read_csv(“filename.csv”)

Df=pd.read_excel(“filename.xlsx”)


Post a Comment

0 Comments