I have a large dataframe that has millions of rows and hundered of columns.
My aim is to apply some metrics on specific columns:
from scipy.stats import moment
moment(df.groupby('id', as_index=False)[df.columns[0:100]], moment=3)
Also, I have to apply other statistics(mean, sd, 4th moment, Sarle's coecient, ...), please is there a way to do this aggregation and calculate many other stats faster?