I am calculating the minimum of each group using this piece of code:
df['columnname'].groupby(group_identifier).transform('min')
This works well but I now want to calculate the 10% quantile of each group instead of the minimum. How do I modify my code?