DAV Assign6
DAV Assign6
Assignment NO:s
Wite a pyton ode to plot linear regression usi ng
Seaborn ibrory
import Seaborn oas sns
inport matplat lib. pyplct as plt
X2 L51lo|S.202s]
YLlo, IS, 25130353
Numpy Pandas
)Seaborn
i)Plotla
i) ggplot
u) Pandas
i ) Plotnine
vi) Altair.
Fa FINOLEX ACADEMY OF MANAGEMENT AND TECHNOLOGY, RATNAGIP
Functions
ldentify B.Consider method.
guch
Null (dentrfy
Decide
method valuey:
Remauing ing AMY
Decide Handing tt Such "dropna)'
Imputng data.
suingkeepinRemouing Sopbisticated
Dull Osing
more Handling
Yalue
Null cateqencal
In
Correcting data
Stand FINOLEX
on a Functiens estMates.pating
ualue, the on
a a
like interpolation.
regressiomgr mean.null ardizing
to ACADEMY
only duplicagte
Duplicate rouos an Null
strategyfor domain-Specific
'dupl: missing
isspellings a
duplicates & appropnate likeValue, onsistent OF
choase medianbolue or data MANAGEMENT
the he cated Value: cisNull()oY
Values Columns Values
s Usith (NaN, fermahs
Keep' orusing the or
C)' in fonad)
last handing mode Strategy AND
or most Statisia) coith
inconSistencie) &
op.duplicates(, the imputatian
techiquea
inp ith
None, TECHNOLOGY,
arameer.
ocCurrence (eg
drapduplicates0!. lication
dupliate dataset Suitable sing
ayinq 9ensibe
Dull tor inetc)
fo coNYering
Measures Values in RATNAGIRI
filUna hand Othe
uiapproqch. of defaults
otvalue: Dg handling ling dataset in
) LJing al
ian), python:
inadyertentBy density
if çolumn_name'T-med
valuenvaua,
aqgregating
duplkcate
RATNAGIRI uaing
the
plot
graphes
TECHNOLOGY, usith
duplicate
not Nialine
alignS
does True).
followlnq ph plt.
AND
&
remouing csv) (dfC sum) boxplot as
MANAGEMENT
decisim () (inplace pyplat as
lysis data. Ing
True)
inplace lot
name'fil
C)-sum C). drawhecatmaphistogram
plot
) pyp
anainfo.
valuable
remoue cex-axis
ylabel(y-axis')
pt. (x-gxis
xlabe
plt
when pd duplicated plot plot')
.title(line
plt
OF
bining thethe drop-dupliates
to matplotl:b b:
ACADEMYor
Com matplotli
appropriafe. o read.csv
null scatter
(aiy)
pltplot
Cx9)
of
that
caution pandais [column. Syntex 2.Scatter
plot:
plot:
line
J: xlabe)
aFINOLEX
objective CJ. Caf. plt.showC) scatter
ensuonq pd: a plot part
im import
Take import Wnte
= print print
ds. line plet. :plt
df df
Q.lo
CHistogram
)pt.hle
RATNAGIRL
TECHNOLOGY,
'y'data=d£) pt.ylabel("Density) ()Plt-showo
larm)
df)
AND
yeydata True)
MANAGEMENT coa P9plot-ou
pt
plot') Cxesx'ye cmap pyplot:a4
Sns nltttle(Nialin
plot) Shode plot)
plot!) Sns sns sns Hedtmap')
(' )
=lo Freque
label(
pt.y
OF ('Y-axis)
ylabe)l
plt G x} (dato,
pata') data, bing
ACADEMY
catter o Density as mtplotlib.
import
(Data')
ott
xlabe)
Seqborn
(xaBox segporn þorn
4. born
Yioline
plot violineplets-Density
plot: xlabel(' C Cdota,
FINOLEX 4tle('S plat: Sns.boxplot
3.Box
pt.show() Htle(
shouc) Seo shouCO kdeplot('
Shoo)
pl+.
S.
Heatnap
plt.shoao)
Sea hettmap 7.
Hstogram
ti4le
plt
import import pit.1ite import hist
import
plt.plt Shs. plt
F
pt. Snsplt- Sns plt