get stats from array python

86

get stats from array python -

# Finding statistics of data
from scipy import stats
  
list_with_values = [9, 3, 27] 
desc = stats.describe(list_with_values)
  
print("No. of observations is :\n", desc)
#No. of observations is :
#DescribeResult(nobs=3, minmax=(3, 27), mean=13.0, variance=156.0,
#               skewness=0.5280049792181878, kurtosis=-1.5)

Comments

Submit
0 Comments