0% found this document useful (0 votes)
20 views7 pages

Assignment 10

Sppu tutorial assignment

Uploaded by

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

Assignment 10

Sppu tutorial assignment

Uploaded by

Dev
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 7
Data Visualization - II! import import import import dfispd.read_csv(*/content/iris.csv') dea Id Sepallengthcm Sepal 146 147 148 149 150 unpy as np pandas as pd Seaborn as sns matplotlib.pyplot as plt 150 rows x 6 columns 49 47 46 50 67 63 65 62 59 df=pd.DataFrane (df) df.head() 35 30 30 25 30 34 30 thm PetalLengthcm 14 14 Id SepallengthCm SepalWidthCm PetalLengthCm PetalWidthCm o1 12 23 df.describe() 1150,000000 54 4s 47 46 50 '150,000000 35 30 32 34 36 '150.000000 14 14 13 18 14 150.000000 92 02 02 02 02 Sp 02 ris-setosa 02 ris-setosa 02 tis-setosa 02 tis-setosa 02 ris-setosa 23 is-vicginica 18. is-vicginica 20. is-irginica 23 is-vicginica 18 is-virginica Species lris-setose lris-setose lris-setose lris-setose lris-setose Id SepalLengthCm SepalWidthcm PetallengthCm PetalWidthcm 150.00000¢ Id SepallengthCm SepalWidthCm PetalLengthCm Petal mean 75,5000 5.843333 3.054000 3.758667 std 43.445368 0.828066 0.433594 1.764420 min 1.000000 4300000 2.000000 1.000000 25% —38.250000 5.100000 2.800000 1.600000 50% 75,500000 5.800000 3.000000 4350000 75% 112750000 6.400000 3.300000 5.100000 max 150,000000 7.900000 4.400000 6.900000 df.info() RangeIndex: 150 entries, @ to 149 Data colunns (total 6 columns): Column Non-Nul1 Count Dtype 1d 150 non-null int64 SepalLengthcm 15@ non-null — floate4 SepalWidthCn 150 non-null floated PetalLengthCm 15@ non-null floated PetalWidthcn 158 non-null floate4 Species 150 non-null object dtypes: Floates(4), intes(1), object(1} nemory usage: 7.2+ KB df.colunns Index(['Id', ‘SepalLengthCm', ‘SepalWidthCn’, ‘PetalLengthCm', ‘PetalWidthcm', Species'], dtype=" object") df['SepalLengthCm’ ].max() 7.9 dF["SepalLengthcm' ].min() 43 df['SepalLengthCn' ].hist(bins=30) hcm 1.198667 9.763161 9.100000 9.300000 1.300000 1.800000 2.500000 df[‘PetalLengthCm’ ].max() * 6.9 in af "PetalLengthcn’ ].min() 1.e d€['PetalLengthCn' ].hist(bins=30) B 2» i df['PetalWigthcn ].max() 25 df['PetalWidthcn' ].min() a1 df['PetalWidthcn' ].hist(bins=30) 00 05, 10 15 20 25 df['SepalWidthcn’ ].max() 4.4 dF SepalWidthcn® }.min() 2.8 df['SepalWidthcn’ ] hist (bin: 8) B 2 df[ Species’ ] .value_counts() 5@ Iris-versicolor 58 Inis-virginica 5@ Name: Species, dtype: int64 i d€[ Species" ] .hist (bin: 2) 50 “ 0 ° Iris-setosa Irisersicolor Iris-irginica . ‘sns. boxplot (x='SepalLengthCn’ ,data=dF) 45 50 55 60 65 70 75 80 Sepaltengtncm sns. boxplot (x='SepalWidthCn' ,data=df) vee 20 25 30 35 40 a5 ‘epatwiathcm sns.boxplot (x='PetalLengthCn’ , data-d#) 3 a 5 é 7 Petaltengthcm sn. boxplot (x="PetalWidthcn' ,data-df) oo 05 10 15 20 25 Petalwigthcm

You might also like