0% found this document useful (0 votes)
15 views

Pandas Assignment

Uploaded by

Pubg Montages
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Pandas Assignment

Uploaded by

Pubg Montages
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Python Library:

Pandas
By Pankaj Kumar (8632)
AND Rahul Kumar (8651)
Introduction to pandas 🐼

• PANDAS IS A SOFTWARE LIBRARY WRITTEN FOR THE


PYTHON PROGRAMMING LANGUAGE FOR DATA
MANIPULATION AND ANALYSIS.
• IN PARTICULAR, IT OFFERS DATA STRUCTURES AND
OPERATIONS FOR MANIPULATING NUMERICAL TABLES AND
TIME SERIES. IT IS FREE SOFTWARE RELEASED UNDER THE
THREE-CLAUSE BSD LICENSE.
• THE NAME IS DERIVED FROM THE TERM “PANEL DATA”, AN
ECONOMETRICS TERM FOR DATA SETS THAT INCLUDE
OBSERVATIONS OVER MULTIPLE TIME PERIODS FOR THE
SAME INDIVIDUALS. ITS NAME IS A PLAY ON THE PHRASE
“PYTHON DATA ANALYSIS” ITSELF.
Library features 🐍
DataFrame object for data manipulation with integrated indexing.
Tools for reading and writing data between in-memory data structures and different file
formats.
Data alignment and integrated handling of missing data.
Reshaping and pivoting of data sets.
Label-based slicing, fancy indexing, and subsetting of large data sets.
Data structure column insertion and deletion.
Group by engine allowing split-apply-combine operations on data sets.
Data set merging and joining.
Hierarchical axis indexing to work with high-dimensional data in a lower-dimensional data
structure.
DataFrames

• Pandas is mainly used for data analysis and associated manipulation


of tabular data in DataFrames. Pandas allows importing data from
various file formats such as comma-separated values, JSON, Parquet,
SQL database tables or queries, and Microsoft Excel.
• Pandas allows various data manipulation operations such as
merging,reshaping,selecting, as well as data cleaning, and data
wrangling features.
• The pandas library is built upon another library NumPy, which is
oriented to efficiently working with arrays instead of the features of
working on DataFrames
How to install pandas

• Enter the command “pip install pandas” on the terminal.


This should launch the pip installer. The required files will
be downloaded, and Pandas will be ready to run on your
computer. After the installation is complete, you will be able
to use Pandas in your Python programs.
• {performance improvement plan (PIP)}
Some Pandas Commands :

1. pandas.DataFrame
2. We use pandas.DataFrame() to create a DataFrame in pandas.
2. DataFrame.mean()
For the median or mode value, replace mean() with median() or mode().
3. Dataframe.info
The info() function is an essential pandas operation. It returns the summary
of non-missing values for each column.
4. DataFrame.describe
The describe() function gives you the summary statistic of a DataFrame:
5. DataFrame.replace
Using the DataFrame.replace() method in pandas, you can replace selected
rows with other values.
Pandas Data Structure
And their Examples
Thank You

You might also like