Skip to main content

map_native_histogram

Function map_native_histogram 

Source
pub fn map_native_histogram(
    function: NativeHistogramFunction,
    schema: &Arc<SeriesSchema>,
    series: &Series,
) -> Result<Option<Series>>
Expand description

Applies function to the native histogram samples of series; float samples are dropped and so is __name__. None when the series has no histogram sample.

Histogram samples may leave holes, but the holes only skip positions: the result is one series over the runs of consecutive positions that hold a value.

Series that share a label set once their names are dropped must then go through merge_same_labelset.