Customize quantile in DataFrames Combine summary

Thanks for posting! welcome to Julia and to using data frames.

First, note that you can use describe to get the statistics you want by doing.

combine(describe, groupby(df, :Age_Catg))

what you want is an anonymous function.

print(
    combine(gd, nrow 
        ,:Income => mean
        ,:Income => middle
        ,:Income => t -> quantile(t, .1)
    )
)
1 Like