Answers for "how to calculate skewness in python"

0

skewness python

from scipy.stats import skew 

# list containing numbers only
l = [1.8, 2, 1.2, 1.5, 1.6, 2.1, 2.8]

# switch to numpy array
v = np.array(l)
s = skew(v) # ~ 0.67
Posted by: Guest on May-18-2021

Code answers related to "how to calculate skewness in python"

Python Answers by Framework

Browse Popular Code Answers by Language