Skip to main content

apply_sampling_if_needed

Function apply_sampling_if_needed 

Source
pub fn apply_sampling_if_needed(
    columns: HashMap<String, Vec<String>>,
    max_memory_mb: usize,
    sampling_ratio: f64,
) -> Result<(HashMap<String, Vec<String>>, bool), DataProfilerError>
Expand description

Sample large datasets to fit within memory constraints