0% found this document useful (0 votes)
18 views46 pages

Class 12 IP - Class 3 - DataFrame One Shot

The document provides an overview of data frames in Python's Pandas library, describing their structure as two-dimensional arrays with labeled axes. It outlines various methods for creating data frames, including using dictionaries, lists, and series, and highlights attributes such as index, columns, and shape. Additionally, it covers operations for accessing, modifying, and deleting data within data frames.

Uploaded by

crackingkhaled
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 (0 votes)
18 views46 pages

Class 12 IP - Class 3 - DataFrame One Shot

The document provides an overview of data frames in Python's Pandas library, describing their structure as two-dimensional arrays with labeled axes. It outlines various methods for creating data frames, including using dictionaries, lists, and series, and highlights attributes such as index, columns, and shape. Additionally, it covers operations for accessing, modifying, and deleting data within data frames.

Uploaded by

crackingkhaled
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

P anda

’s
By:
ejeet
ra
Lov
Aro
https://www.youtube.com/@TECHQueenLovejeetA
rora
DataFrame
 A data frame is a two-dimensional
s array, with labeled axes (rows and
columns having a specific name or
Label).
 A data frame is a standard way to
store data.
 Size is Mutable.[Can Change]
1. Homogeneous Data
2. Size Immutable Serie
3. Values of data are s
Mutable

1.Heterogeneous
Data
data
Frames
2.Size Mutable
3.Data mutable
Rows i.e axis=0
columns i.e
axis=1
Source :- https://www.geeksforgeeks.org
1.Creationn of
DataFrame
• Empty
DataFrame
• Dictionary of List
• Dict of Dict
• List of Dict
• List of List
• Dict of Series
1.Creationn of
• Empty
DataFrame
DataFrame
1.Creationn of
• Dictionary of
DataFrame
List
3/ 21/ 1
2024 1
1.Creationn of
• Dict of
DataFrame
Dict
1.Creationn of
• Dict of Dict
DataFrame
import pandas as pd
#Dictionary of Dictionary
Dict={"Name":{"R1":"Rose","R2":"Delina","R3":"Komal","R4":"Poonam","R5":"Komal"},
"Marks":{"R1":10,"R2":12,"R3":13,"R4":23,"R5":90},
"City":{"R1":"Kota","R2":"Delhi","R3":"Delhi","R4":"Goa","R5":"Delhi"}}
Df=pd.DataFrame(Dict)
print(Df)
1.Creationn of
DataFrame
• Empty
DataFrame
• Dictionary of List
• Dict of Dict
• List of Dict
• List of List
• Dict of Series
1.Creationn of
• List of
DataFrame
Dict
1.Creationn of
• List of
DataFrame
List
1.Creationn of
• Dict of
DataFrame
Series
2.Data Frame
Attributes
• index
• columns
• axes
• dtypes
• size
• shape
• values
• empty
• ndim
• t
3/ 21/ 19
2024
3/ 21/ 20
2024
3/ 21/ 21
2024
3/ 21/ 23
2024
3/ 21/ 24
2024
3/ 21/ 25
2024
3/ 21/ 26
2024
3/ 21/ 27
2024
3/ 21/ 28
2024
3/ 21/ 29
2024
3/ 21/ 30
2024
3/ 21/ 31
2024
3/ 21/ 32
2024
3/ 21/ 33
2024
3/ 21/ 34
2024
3/ 21/ 35
2024
3/ 21/ 36
2024
Len()
Selecting or Accessing
Data Single Value
Multiple
Values Count()
loc and
iloc() Boolean
Indexing
Adding & Modify
Column
Adding & Modifying a
Row
Adding & Modify
Column Adding &
Modifying a Row
Modifying a Single Cell
Value Delete a Column
Delete a Row
Rename a
Column
Rename a Row
Adding & Modify
Column Adding &
Modifying a Row
Modifying a Single Cell
Value Delete a Column
Delete a Row
Rename a
Column
Rename a Row
Delete a
Row
Delete a
Column
Delete a
Column
Rename a
Column
Rename a Row
CBSE 5 Year PYQs on Pandas SUPER SUNDAY
CLASS

You might also like