Skip to main content

load_csv_to_datatable

Function load_csv_to_datatable 

Source
pub fn load_csv_to_datatable<P: AsRef<Path>>(
    path: P,
    table_name: &str,
) -> Result<DataTable>
Expand description

Load a CSV file into a DataTable. Delimiter is auto-detected from the file extension (.tsv → tab, .psv → pipe, else comma). To override the auto-detect, use load_csv_to_datatable_with_opts.