I need to find skewness and kurtosis for a selected feature from the data frame correctly in python.
the target( y ) feature is a selected feature i need.
import pandas as pd
import numpy.random as rd
data = pd.read_csv('data4filter2.csv')
columns = ['Development Platform','Language Type','Adjusted Function Points','Resource Level']
y = data['Normalised Work Effort'].values
X = data[list(columns)].values
I guess the normalized data is the 'Normalised Work Effort' column (just because the name? - yes, without further information and to answer the question)
from scipy.stats import skew
from scipy.stats import kurtosis
print(skew(y))
1.4698391946407465
print(kurtosis(y))
0.5414032993205269
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.