Write a Python program to view basic statistical details like percentile, mean, std etc. of iris data.
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]
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer