'Replace min by a quantile in a transform after groupby

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?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source