Answers for "Mean Kurtosis of all rows pandas"

1

Mean Kurtosis of all rows pandas

# Kurtosis of all rows for specific range of columns
df['kurt'] = df.iloc[:,<col_num_start>:<col_num_end>].kurtosis(axis = 1)

# Kurtosis of all rows for specific columns
df['kurt'] = df.iloc[:,[<col_1>,<col_2>,<col_3>].kurtosis(axis = 1)

# Specify the columns in a list by number
Posted by: Guest on November-03-2020

Python Answers by Framework

Browse Popular Code Answers by Language