0% found this document useful (1 vote)
179 views7 pages

Xii-Ip PPT 2020-21

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
179 views7 pages

Xii-Ip PPT 2020-21

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Unit 1: Data Handling using

Pandas and Data Visualization


Data Handling using Pandas -I
Introduction to Python libraries- Pandas,
Matplotlib
 Python library is a collection of functions and
methods that allows you to perform many
actions without writing your code. ..
 Each library in Python contains a huge
number of useful modules that you can
import for your every day programming.
 There are 20 Python Libraries that you cannot
live without
List of Python Libraries
• Pandas
• Numpy
• Matplotlib
• Tkinter
• Math
HOW TO INSTALL LIBRARY
• GO TO COMMAND PROMPT
• Type following command
• For example If you want to install numpy
library you have to write

• pip install numpy


• pip install pandas
• pip install matplotlib
Data structures in Pandas
Data Dimensio Description
Structure ns
• Pandas deals
Series 1 1D labeled homogeneous
with the array, sizeimmutable.

following three
data structures − Data
Frames
2 General 2D labeled, size-
mutable tabular structure
1. Series with potentially
heterogeneously typed
columns.
2. DataFrame
3. Panel
Panel 3 General 3D labeled, size-
mutable array.
SERIES
• Series is a one-dimensional array like structure
with homogeneous data. For example, the
following series is a collection of integers 10,
23, 56, …
• Creation of Series from :
1. ndarray,
2. dictionary,
3. scalar value
Creating Series from Scalar
1. #import the pandas library and aliasing as pd
2. import pandas as pd
3. import numpy as np
4. s1 = pd.Series(5)
5. s2 = pd.Series(5, index=[0, 1, 2, 3])
6. print (s1)
7. print(s2)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy