0% found this document useful (0 votes)
7 views

View Student Assignment

This document discusses using Pandas to work with dataframes. It notes that Pandas allows importing data from various sources like CSV files, dictionaries, and lists to create a dataframe. Key Pandas concepts mentioned include Series, Indexes, and working with multiple dataframes. It also provides a brief example of handling exceptions with try/except blocks in Python.

Uploaded by

Harsh Saini
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

View Student Assignment

This document discusses using Pandas to work with dataframes. It notes that Pandas allows importing data from various sources like CSV files, dictionaries, and lists to create a dataframe. Key Pandas concepts mentioned include Series, Indexes, and working with multiple dataframes. It also provides a brief example of handling exceptions with try/except blocks in Python.

Uploaded by

Harsh Saini
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Hash umar

u
20 1302021
Bteot
th
-masks) aeag makt,
tend)
:)Ctudent. pnt"
Mar
kr
arkiJ") lenkr] detaily :woRoll print
|
al 1 prit
) fenter] tudutdt (4"Studut
{ente
toUnd!) ente
dtauU: tudut.
nput enter
=
utu "lu
totalnMaks
2o
() vaus ctla, studunt
mas "maks"; dlut Ctu
]: [name detaiu
o"rollho "Rou
mput
(1 masky
{i?:") mavt enter
ntr (f" mput rollno
1") illuo fntes (s"Srput
lit:
"} name
(20): for
mae
diuplay aeld
Ue Make no
Roll
ttudnt askd s
enter to
nae ctldtt a Suldinti 0
4s<iGNm£NT
RolName,
l detallu
ma no
Vasuob
:" ("print
Vat=
tontxt miled
tion tne block
ymed
nane Sam th tunetion
hau tuncion,
te
nude vaiables aahal vooinlale
can owvaablw?
vat
ceop gobal docal Jindtand
B you dowhat )
kmn ) , value
" minumu wh
vale valu min.
knm
CmmVall vals ik
Vale
m ee
()Hmy
NOhe Kmm
b:2 {'a'
,Sample:
'3, minú
dictionay tom value mum
kuy) kampe 'at
o
dlete
(b',''J deletekeys
:
'c'3, 'b'2,
kays Dlti dtet
tan -How
(i)
pgram aWte
dulele to
al 0BAL SCOPE
Veoúa blu u a aiabu e dakmed at

block tern ehn.


Gcbal vasiabs e
Vat 10
dt goal van):
prnt ("Vesuable ver)
obat. vont)}

Vot
fme )
Vaul 10
Val
Var t Van1

p t(" Glcbat uablu"an)


Lotal Vasiabla", vn)
pint("
prnt ( Rsult, es)
tune) van)
pnt ("Cutside
? Nhat
Lich u bettes onda
40uetiuru m Pandas 2 what ane
uatng Dataftane in udas (xploim with
PANDA
dot.
-It w1ks on abwlar
Data frane
moe
has a
mameny.

- tt otk data

tonuned
undas pxauids data

dato
.atae
(DuEuLNeJ. Pandeus
dota
In adtiow to
proice uu c h data
" Panel
" Index

" Aultdnder
" Datelins
Dataams.
dati
DitiomY
Jmpst pnda
'Naum'
data
(,2,3)
Datatreme (data)
t pd.

trom a
tictieraiu
impant pandas
A
1'Namne'
$ 'Ntune: 'B, 'Ag
pdbata ran (daty )
pint tay data
- trom a c<v gu: Ruad
tata rne
'redd. cw fmtien
omt
to nandlu xupLcns

aun
# (oole Ahat may raie

tt 4audle

ertept (Erapton2, tnaptian 3) :


multple
wos voued m ue
exption
bloek

whlthe On
H xeute

umlimt (imput (" ente! mumeratsr: "))


O (" nte dunounatr!")
muna nt (mut
elult : num!/um2
2erobiuiiunError:
prmt("fvror iuiian by ero u mor allowed. ")
ercept Valle ErreT:
ali d numenc Valus.)
pint ("Evrm. Please ent
eror 0Currd:" e)
prmtl "An wnpectd

prnt (" ixeutin tmgtd )


(iro.), (213)3)
X*np ray

Iro,218
[I,3))

tco,,2,3],
[4,5,6,t],
ts, a, 1D, 33)
ba

’ Tru

mpout panda pd ndr 'A, 3',''


4è0,
300,300, Soo ],
pd. sSeies ( tro0, :l'A,'8','c', 'D, e)
S1 4,5), imdx
(C,2,3,
$2 pd- uús
ont (sl )
A 100

aray Co,
(tci,2,3], 1,49))
a np
ero (0,3),ype :mp nt 16)
ms ((23)
d: at b+ C
tU6Tk

wied te tte

tu Cam allous
Cun hape, wbich conbe

pe (x, (43) )

X* Lo 2 3 us6 1

(ttt,2,3], C,S,«)
(-)

3 4 567

You might also like