kurtosis

Calculte kurtosis and skewness using for loop

Calculte kurtosis and skewness using for loop Question: i’m trying to calculteskewness and kurtosis for different fields. I want to get in the end table with each field name. the kurtosis and the skewness. for that I have written the next code: for i in data_dis.columns: print(‘skewness’,i,’:’,i.skew()) print(‘Kurtosis’,i,’:’,i.kurtosis()) AttributeError: ‘str’ object has no attribute ‘skew’ …

Total answers: 2