Skip to main content

detect_dtype_arr

Function detect_dtype_arr 

Source
pub fn detect_dtype_arr(value: &[DataValue]) -> DataType
Expand description

Scans a slice of DataValues and returns the dominant DataType.

Inspects up to three consecutive values of the same type before short-circuiting. Heterogeneous slices return the type of the last observed change.