Data Handling using pandas – I
Data Handling using pandas – I
–I
Presented by : dinesh mehra
Pgt (computer science / i.p.)
Introduction
• Python libraries contain a collection of built in modules that allow us
to perform many actions. Without writing detailed programing for it.
• Each library in python contains a large number of modules that one
can import and use.
Example of Python Libraries
Series
creation
<seriesobject>=pd.Series(data,index=idx)
if we do not explicitly specify an index for the data values while creating a series,
then by default indices range from 0 through N - 1
CREATING NON EMPTY SERIES
We can create non empty series from any of the following.
C R E AT I N G A S E R I E S F R O M S T R I N G
C R E AT I N G A S E R I E S F R O M L I S T
C R E AT I N G A S E R I E S F R O M L I S T
C R E AT I N G A S E R I E S F R O M T U P L E
ENTER MANUAL INDEX VALUES
Creating a Series From Dictionary
Using
NumPy
SCALAR MEANS SINGLE VALUE