0% found this document useful (0 votes)
6 views16 pages

Data Frame

Uploaded by

pratyushbansal68
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)
6 views16 pages

Data Frame

Uploaded by

pratyushbansal68
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

ob.

dype ’ nt
1sleb 7wwu dayu
amel esetiny ndene af bataFxe
ontoet pamdas a pd
dla Pd Datafxame $'Nam':E Rintetu
Rint
a'67, 18,7s, 09 1'Eo':78_61,
B9,9o]
Name tmg eo IP
78
itu 7 67
B9
3
Page No.
Date

To St colusas a iudere It c l amge indl


Al- te iudex ('ame', inlace Tiue)

Eng Ip
Riuki 72
Ritu 67
Ajay 7S %9 99

To esetiucles |To qt ack tu cld om


dlset_iudes intace =T )
Adaing

Kenaming ceum ae mBatafs amne


Page No.
Date

Aadiug mew Colum u otaframe

pd DataFrnie)
pHat fde)
Add new columw

Hatematcal

IP ACeons Total
Riutu 61
67 6O 293
B9 7 237
340

allate Na a d add amw columui u Databiame

Flnd te

Taaap ith Jindex= [101,


lo2, lo31, coluwns !Name'
pnt
Page No.
Date

pmnt

Name Plqsicas Chonsty Lote


Saeeeti 34
10tobS25
Tasys 60
Kiti
go07" 23
Page No.
Date

Rsetiag columnfuom bataan


le pd Datafsame S'Nane':[Ritu'AjaLHa
'Rolit ScoaG1 B2,37,621,oattemjs:
9,23]Q inces [SnlSn) Sna
Sn4])

Nme)

Jo

Nam Score No atempts


Sn
Sh2 32 2
Sn3 Mani
Roeit 6 3

pint (af (l:91)


Nmu Sçore Noattems
Suz Ajay
Page No.
Date

Name Scoe
Ritu
Su
ajay

Name Scon
Sul itu 67

Scoe
67 Joatemthay
No
b2 2

62 3

Admw. NamL
Shsuti Paypica
64
c Chemisty
17
lo3 Taya 6S
29
|o4 Vineeti 66
Ramam SS
eite a statement toadd mew colum
Claiist with ale 1.19,67,%1
Page No.
Date

waite outur od 0:4)


hislay coneto aatapuane
Adm n Nam
C Jol Sheutt
2 lo3
Tanya
tifth
ineet
/oRama
wseite a commamd to dislayast to ouws
dy-iloc [3:S,

bisiay mame oumu by Statemnen

fwtuoutQuotes
Clemistb
B9
|Page No.
Date

D.loopfunctim
hng amdl Itesatiy data îu datafsam
anfaset pandas
d=pd Datafame ls'mass [Bo.9 2,67,9s; 91J
:[3>,2859, 25,2, Sndea uifaya
Raldmegbha adka Slana
onas.
Sost

To Sos e ealues in
to mas descendneodLex alodio
SD vale

To dislaydata Low wise in


datafame

To disslsy, data Columw w1ce


Page No.
Date

datiqlane
lmaotfandas
lni Test-L
a pd
S6,8,3,lo] wnit -

apd Data anse [s2)


uni Tast 2

2
9
3 31

2
6

ubtaction iu datofTame
UmlTot
2

19
Page No.
Date

mal

tue isying Ualuey in Data Fsa


moet pamdas as pd

56
NaN
T
NaN
NaN Na NaN
NaN

Vae- Loumn -wisc


Page No.
Date

2 5

Boo leam Reducti0n ßooleayi Rootucti on Cam


be oflied by uiug ensgty),tyl
all()functien

LolemuX1
Bows

al etsns Tous f all the elemen


bata fro amne rasuu mon 2eronen my
bu motFalie

C d pdData Fsame C$\y': (Tsue TrueJ


X

Falie
Falie
Page No.
Date

combinin dataRmeS sow asiu and


ColunA Lwse
motpandasa p )
þd bataframeolliu,In, 12,13

Dabafioe (5oll23,l2131
1am'Rene Jahu'Deeh
Conbining

lo
Hollg0
Rinu.
2
12
Quup
Rinkyt2
A3 Sakhi
Comiining Co lDunr wiSe
pa oncat

12

Rinko

Jatin
3 13 ahil
Page No.
Date

Ed

13
14

Hood
pd
ds-9-Roo
Dota

t10 toS alono th a

A 0ispla
2 4 - 0 1 .2 0
Page No.
Date

|CSV Fle mma easateA Vales


Rduamtaats o CSVSaall lottest
Stonas famatfor data
Aconues Loronaat et data
3 ateHcuama

How to (uate CSU


le

Eonpid Name
1b9Rire sh
lol
arShay 26
27
lo4

Sans
mams

Selected
peadCsu , D)

Nam )
Page No.
Date

Readdin csvile wHu seleted ws


iett amdas as pl
Deea CSV 1)
nDws 3

eaA CSU without lrader


lvnperst pandas ad pd
,)
leades Nene

KRead csvea wito Sudee

Aladin c ile wth mw colim n mame

mame- fE-id'Emame

gdattug conten o csv file.


d-pd eod

Coing csuile
to Csu(" tmmpne.csu)
Page No.
Date

- S a w i n g batofsame alcsu fle


mpaat pandas as fd

cs")
af-to csu(Studsnt, locloc
Valle at and at
single
Acexsing clangiug
rmpost pandas as pd
eadi

Row Name
89
pint faf iat [ i , ) Deep 7
2 Shauys 32
pant (dy.at [2kco'1) fodlita 89

Ldiat CL2] -3

Radeira
ed4iat[3,o] =Amam

You might also like