spark_connect_rs::functions

Function percentile_approx

Source
pub fn percentile_approx(
    col: impl Into<Column>,
    percentage: impl Into<Column>,
    accuracy: Option<impl Into<Column>>,
) -> Column
Expand description

Returns the approximate percentile of the numeric column col which is the smallest value in the ordered col values (sorted from least to greatest) such that no more than percentage of col values is less than the value or equal to that value.