-pxeviowd vale.
backand fling
Na aley ith
Sensitive o
Owliesbecs
, becge
if Hey apreent
foy (we
Blna
bydefalt ais =|
Qxis-o
Should we
Ga imit =
Can 2imt hos
te Nan values
df. A20 ngmethod bAee"imi+ 2
imit e 2)
f. Aeeaa (method -
df. isaullc). Sum(
NA Velesdpna )paemetes -
Deppig
Oreh
Tayeshpaametr wse ice
He calunns ohich
hasing mìniug
lyed.
walues mple can't
givevegi
bt meter paa wae Nalues
tn
uliple give cea e
xeplacevaluetbe
xeplce waleto-
be
to-veplace replace df.
aingdiat
af-meplase
value
List
eplaciegautes
e(3) vae( Cezzsupt Replaciyg
)using nesed dietioaay(msst we)
df,reace
:ed-yalue nesvalue
Hee we do n t ye vole paamete
Crosstab
Speiay desigaed for Caunhng tte Raquentg
categories
dimensions Summazig
(r s luaas)
data
Usecase =
dioapfe a5gegaiens sho Yelatisnship
beteen cattgaica Nariables
Couot
Is/le/24
Matplo+ib
Mathemgtieo pottng be
Create Paper
tnches
tnch loopizels
step 22 =Coeate
, Qddaxey (rect
height)
left
bottom
all te yafues i20 2ie bet o ¢| of reot
parene te
hcecalo
dpi (deh_pee inehea)
To make Qes valaes baight shap te
dpi
pltgure
plt plet
J-value
Pamamees =tese paramet
panamets come Madee
Rinedth T Set watctth af theplotte
Qine
Linesty le
Colo
menkeredgecalor edge calar of markes
fontstyle
fontsize
alabel plt
4\
famg font sh,le
fontsize -font O
nameto
3
anis) (Y- ylabel plt
gixe ie These ais X aaha plt
seting
Ais= XéY
otted-line
plot pl+
Sinestyle marleey Caloy
pltplot
etacbg ag
Sineste
moeer caloyalssiNe
CAn
potibRineLine
D) 2 hele
Lmpor
toge have
tlih iokyasrg available te see To
method help into i+
paste 1jt nethods difPevent fer
diffarent bewr2e gd Balo
plt. show)should alwas be at
2ast of He Code
Ti+2e to plt
lorain
removed Het
e Manieulating spines (Boder f plots
cenue. spines L: [Link] Calar (i"red)
object of A20 spi nes
Canve
we can Set iadiidual spines lso
spines
Canyas .spines L igh set -caloy ( " )
Contrslaig Ticks ( cordinated
Suppose e antto show moe etee
moe co-dingtey we can do
it ing Hcks
[Link] ky
legerd shas desceipion f He plot.
plt. egend
plt egead
best place ia plot
e have to gie labe ly to our
2ines y abel -paramet to each Code
(canvad inside Caavas
Seccanva= n Qdd ane
((oo.7,o.6o,2s)
.23
Grids
Addig
ie te plot
weshol se
pltgzid(tinest le
crea tes ineddepenolig pn
He X- labes
* Projections
we can wse diffeent preeions t yegte
Aiffezet Sizes paper
2aper .addaes jecton
Previgypapeto
important doplotting
madeiso
can do
plottinge
dixectly
Dixect ay f ploHna
plt plot
Xais [Link](l6)
ais
plt plet (2-aisxis nskey
pl+ alabel"
pl+ .eesend c)
fontsi ze =
narkey
wet to sho the da t - psiots iotsecion
He plot
facecolo
for inney oto
qddaey ()
then colbr pamet
[Link](dpi
piot eap
Matplot6 Gaid Subplo+2
subplats te QNelappig
bet
the memsue to
to wey
wetu2 method
is This
layat aht plt
Haeie subplt create
6e te IBem ie indez wpon Deperdig
(
encoy
-3 Suppese
ATO•s
2
axsnal,
indax) subpla+ pl.t
- h slhpRatt a
but Jith te help of subplot2 Gotd
Can Cant e seplot size
Suppee e haye
have inceeasíng
ince easíg g-aais y e ten
2 make tat plot ta te htgh x-lab
plt subplet 2gzidchape - (3,3)
2os (o)
msspan = 2
calspan 2
plt subplot 2goidshape - (3,3)
= 2
Ysspan
Qoc a 2 )
(S 1 6 shape
(21)
7De kernel Dersit Bsting tion
Univaient Bivamient livaciegt
Numerid cakgasical NN
Boz Coutplot
L piechart
nists
ahy bar plot is called count plat io
uaivoient
univaiet
as is te Areqeng
n-gnis data HateJhy it is Count plot.
OHistegag squene plet
Af plotHng histagrag e ebve
histogaM Contein tte count
f tespesiied vae trem
Contaid te yalueA ouy uoiarieo date
enforeed te Ounbe
bins Hen th otqinl vale ie be
diutde tnto
yeates histegas
bin-oidth (an be calaated
([Link]- 4.3)
b i n ldth mat- mio
Aoof bins
bin -woidh
we Can als eg te bin sizesinstea
f a00 bin oith eg lax size
binsa v a l e Q:lke 4i3, 4.66,.
aummoive histogam
plt. hist cmmalye Tyue
TH shos step -wise plt io te plottng
Conlde te ae peale r va le
doep inparteulan range io patting
Mistagoan sing Seaboro
Sas. histp ot (da =
hue
kde > Teue
piat (elt colermaps
This Cede i90
Kesnel Density Eshmate (koeplot
saskde plot data -
Tue)
forr ing te color in
KDE pot
bud- adiut padmeter (bu bin-od +h)
giel densi bet tte daa
peaks be geAeaated
Sns kdeplo+ [Link] o.s)
Estimgted aimmulative Density unctien
( ecoeplot
Depending ean te peportin eopplots
Poy tHe data
e
pletting
snS. ecdfplet
k Adding ag ine anplot
pl+cine ( A y e t e a l Qne
Bozplot = ( Bax whiskez plo
nsbozplot date e
hue
ith hue withoyt hue
e)Violin pltJoining Box KOe)
[Link] (data2
hye
change boxplot f wisoplot oith otthe
koe plot
Categieal Data
Countelot
Sas. Couoteot ( data
hue
B Pieplot =
Qabel e f'Speciea'lue countd() iadesd
pltpiedaa -
Qabes abecaloy s -
autopt "). 1. 2f : . "
shado Tue )
- Tf we have to use palette iasted o
colars la pie chax+ en We =
41
Calers pl+ styeuse
Bivaiate ploS
)umeic vs Numeic
Scattteplot = 3
2
alpha
lpha panamete
plat ten Some pslnts ge damkec byt
Peint d u to olpha
that darkerpelots shas Hat He ddats
palats qne ye lapped
OHe
S e can get te duelicate points
plot itsel£
Dis- gdvartege of vin plot
TH shos stributibut doey not sho
ouie 25- So- 2
vaues byt does ast shoco dietibutin
data
O Bozan plot (seabevo) is wed to shos te
Outie ay se a disibuti f de+
Diefeaene be Hiatogág
aumenical -numezical Je plot histpag
fo Categical -numeric a
Borplot
Bq sic ngte ot can creqte hisgres
Rite this bar plat
histgan)
plotshenwe
O Odf HeatMap Osheneye pRot
alao
bax Soi+
shon on JF. histagrag shen
Zero
have we 9misten
Streag
posthueRangeSheng shos
thve ea aF select date-He
select hawe yesg
positive heatmap aumericel we
(Range Sdtpes canfeing
dypes alsay onhaNe
elationshies plot
we
(umbe")
comns -
9iSdate- hisgram
plotcen
(Range
incdde"begloa' have to
Range Numerical have
ine seleet
ttat fem t to
O-o,s)
-o.5
to-O.s) o plothegt-mgp ye G
- te
cao oumerica
data 4merice
to be bar
-)
LLL1L11 5SEEEEEEEEE
ranked Covmelat
to sho he yelatienships bes cos
hecaescatter pRot caa contain categorical
colu hue inplot So
scattes plot inde heat nop
because Scattee plot can sha the gelatinshie
shen cwe alee hue categovical colimn
fair pet is tte plot tat can be Gppy
dicectl4
aeed to
on
Sepane
te hoe data frane
cofuns
Joint plat Coonbingti f scottee t Histogvam
Jhich ces shos He elisshie in scatte
Can she e freguenciel in histogam
A) Distaiptive dis tibwn
Ae-ea Binsatal
Muli-nemi
Bevoou20i
Poissoo
Continouse Distilbn =
Norm
Unifo
EzponenHel
lognozmal
is He
Ohe eent b t 2 outeomed is benouli
moree event but 22 Outeomed
ls bingniel
Moye eyent
mulH-aomiel
an happen is pojsson distebu
foy berenaui binsmia comealinait is 2