0% found this document useful (0 votes)
21 views1 page

Classwork For GGIS XII 2024-25

Uploaded by

gmbvks
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views1 page

Classwork For GGIS XII 2024-25

Uploaded by

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

Classroom

class GGIS
12_NCERT - pandas1.pdf XII 2024-25 Open with Google Docs
2.3.5 Joining, Merging and Concatenation of
Notes
DataFrames

Home Stream Classwork


(A) Joining People
We can use the pandas.DataFrame.append() method to
merge two DataFrames. It appends rowsof the second
Calendar
View your work
DataFrame at the end of the !rst DataFrame. Columns
not present in the !rst DataFrame are added as new
columns. For example, consider the two DataFrames—
Enrolled
All topics dFrame1 and dFrame2described below. Let us use
theappend() method to append dFrame2 to dFrame1:
To do
>>> dFrame1=pd.DataFrame([[1, 2, 3], [4, 5],
G [6]], columns=['C1', 'C2', 'C3'], index=['R1',
Chemistry
GGIS XII 2024-25
'R2', 'R3'])
Chemistry

>>> dFrame1
11 ABCD _GGIS(2023-24)
1 C1 C2 C3
ABCD R1 1 2.0 3.0
Assignment

Volumetric Analysis
R2 4 5.0 NaN KMnO4 VS FAS No due date
R3 6 NaN NaN
Archived classes
>>> dFrame2=pd.DataFrame([[10, 20], [30], [40,
Assignment

Volumetric
50]], Analysis-KMnO4 Vs Oxalic
columns=['C2', 'C5'], index=['R4', 'R2', Acid No due date
Settings 'R5'])
>>> dFrame2
C2 C5
Assignment

Chemistry
R4 10Project
20.0 Topics No due date
R2 30 NaN
R5 40 50.0
Assignment

Notes on Solution & Colligative Properties No due date


>>> dFrame1=dFrame1.append(dFrame2)
>>> dFrame1
C1 C2 C3 C5
R1 1.0 2.0 3.0 NaN
Assignment

Concept Map & formulas of Solutions cha… No due date


R2 4.0 5.0 NaN NaN
R3 6.0 NaN NaN NaN
R4 NaN 10.0 NaN 20.0
Assignment
R2 NaN
Important 30.0 NaN NaN
Questions from Chapter Soluti… No due date
R5 NaN 40.0 NaN 50.0
Alternatively, if we append dFrame1 to dFrame2, the
rows of dFrame2 precede the rows of dFrame1. To get
Material

Notesthe
oncolumn
Electrochemistry
labels appear in sorted order we can set the Posted 23 Apr

parameter sort=True. The column labels shall appear in


unsorted order when the parameter sort = False.

# append dFrame1 to dFrame2


>>> dFrame2 =dFrame2.append(dFrame1,

INFORMATICS PRACTICES
INFORMATICS
PRACTICES
sort=’True’)
>>> dFrame2
C1 C2 C3 C5
R4 NaN 10.0 NaN 20.0
R2 NaN 30.0 NaN NaN
Material

IP JOURNAL LIST - 2024-25 Posted 7 Apr

2022-23

Material

5th April Posted 5 Apr

Page 27 of 36

Material

4th April - programs Posted 4 Apr

Data Handling Using Pandas - I 53


Material

3rd April -programs Posted 3 Apr

R5 NaN 40.0 NaN 50.0


R1 1.0 2.0 3.0 NaN CLASS 12- NCERT-PANDAS
Material

1 Posted 3 Apr
R2 4.0 5.0 NaN NaN
R3 6.0 NaN NaN NaN
# append dFrame1 to dFrame2 with sort=False
CURRICULUM-2024-25
>>> dFrame2 = dFrame2.append(dFrame1, Material

Edited 25 Mar
sort=’False’)
>>> dFrame2
C2 C5 C1 C3
R4 10.0 20.0 NaN NaN
R2 30.0 NaN NaN NaN

Business Studies
R5 40.0 50.0 NaN NaN
R1 2.0 NaN 1.0 3.0
Business
Studies

R2 5.0 NaN 4.0 NaN


R3 NaN NaN 6.0 NaN

The parameter verify_integrity of append()method


Material

PPT ON PRINCIPLES OF MANAGEMENT Posted 7 Apr


may be set to True when we want to raise an error if the
row labels are duplicate. By default, verify_integrity =
False. That is why we could append the duplicate row
Material

ch 1 nature and significance of Managem… Posted 3 Apr


with label R2 when appending the two DataFrames, as
shown above.
The parameter ignore_index of append()method may
Business
be set to True, when we do not want Studies
to use row index
Material

Curriculum 24 -25 Posted 26 Mar


labels. By default, ignore_index = False.

>>> dFrame1 = dFrame1.append(dFrame2, ignore_ Think and Re#ect


index=True)
>>> dFrame1 How can you check

Accountancy
C1 C2 C3 C5 whether a given
0 1.0 2.0 3.0 NaN DataFrame has any
Accountancy

1 4.0 5.0 NaN NaN missing value or not?


2 6.0 NaN NaN NaN
3 NaN 10.0 NaN 20.0
4 NaN 30.0 NaN NaN
Material

WS ON CASH FLOW STATMENTS Posted 7 Apr


5 NaN 40.0 NaN 50.0
The append()method can also be used to append a
series or a dictionary to a DataFrame. Material

BALANCE SHEET FORMAT , WS ON COM… Posted 7 Apr


2.3.6 A"ributes of DataFrames

Like Series, we can access certain properties called


WS
a"ributes of a DataFrame by using - property
that COMPARATIVE
with
Assignment

STATEMENTS No due date

the DataFrame name. Table 2.4 lists some a"ributes of


Pandas DataFrame. We are going to use a part of the
data from a report called “STATE WS on TURNOVER
OF FOREST REPORT Ratios No due date
Assignment

2017”, Published by Forest Survey of India, accessible


at h"p://fsi.nic.in/forest-report-2017, as our example
data in this section. Assignment

WS 2 : Profitability ratios + liquidity ratios No due date


As per this report, the geographical area, the area
under very dense forests, the area under moderately
Assignment

WS 1 - LIQUDITY RATIOS No due date


2022-23

Assignment

WS 1 ( Accounting for Ratios) Due 29 Mar


Page 28 of 36

Material

Accountancy curriculum 24-25 Posted 26 Mar

54 Informatics Practices

dense forests, and the area under open forests (all in sq

Circulars/Noti!cations
Circulars/Noti

km), in three States of India - Assam, Delhi and Kerala


are as shown in the following DataFrame ForestAreaDF:

>>> ForestArea = {
Material

AGM 24-25
'Assam' :pd.Series([78438, 2797, Posted Yesterday
10192, 15116], index = ['GeoArea', 'VeryDense',
'ModeratelyDense', 'OpenForest']),
'Kerala' :pd.Series([ 38852, 1663,
Material

AGM 24-25
9407, 9251], index = ['GeoArea' ,'VeryDense',
Posted Yesterday

'ModeratelyDense', 'OpenForest']),
'Delhi' :pd.Series([1483, 6.72, 56.24,
129.45], index2024-25
= ['GeoArea', 'VeryDense',
Material

Class Time Table 1

1
comment

Edited 31 Mar
'ModeratelyDense', 'OpenForest'])}

>>> ForestAreaDF = pd.DataFrame(ForestArea)


Material

Orientation PPT-23rd March


>>> ForestAreaDF Posted 23 Mar
Assam Kerala Delhi
GeoArea 78438 38852 1483.00
VeryDense 2797 1663 6.72
Page 26 / 3610192 9407 56.24
ModeratelyDense
OpenForest 15116 9251 129.45

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