polars.internals.frame.GroupBy.quantile

GroupBy.quantile(quantile: float, interpolation: str = 'nearest') polars.internals.frame.DF

Compute the quantile per group.

Parameters
quantile

quantile between 0.0 and 1.0

interpolation

interpolation type, options: [‘nearest’, ‘higher’, ‘lower’, ‘midpoint’, ‘linear’]