Skip to main content

prepare_histogram_by

Function prepare_histogram_by 

Source
pub fn prepare_histogram_by(
    lf: &LazyFrame,
    column: &str,
    bins: usize,
    range: ValueRange,
    share: bool,
    color: Option<ColorSplit<'_>>,
    sampling: &ChartSampling,
) -> Result<HistogramData>
Expand description

A histogram of column, split by color into groups on the same bins. With share, a bin is its share of its group’s rows so groups of different sizes compare. The range is the whole column’s, so every group clips alike.