Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #Mean #Kurtosis #rows #pandas
ADD COMMENT
Topic
Name
1+8 =