Q:

Write a Python program to view basic statistical details like percentile, mean, std etc. of iris data

0

Write a Python program to view basic statistical details like percentile, mean, std etc. of iris data.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import pandas as pd
data = pd.read_csv("iris.csv")
print(data.describe())

Sample Output:

               Id  SepalLengthCm      ...       PetalLengthCm  PetalWidthCm
count  150.000000     150.000000      ...          150.000000    150.000000
mean    75.500000       5.843333      ...            3.758667      1.198667
std     43.445368       0.828066      ...            1.764420      0.763161
min      1.000000       4.300000      ...            1.000000      0.100000
25%     38.250000       5.100000      ...            1.600000      0.300000
50%     75.500000       5.800000      ...            4.350000      1.300000
75%    112.750000       6.400000      ...            5.100000      1.800000
max    150.000000       7.900000      ...            6.900000      2.500000

[8 rows x 5 columns]

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now