Skip to main content

load_csv

Function load_csv 

Source
pub async fn load_csv<T: FromStr>(
    url: &str,
    delimiter: u8,
) -> Result<ArrayBase<OwnedRepr<T>, Ix2>>
Expand description

Downloads the CSV at url and parses every field as T, returning it as a 2D ndarray (rows × columns). delimiter is the field separator byte (e.g. b',').

Errors if the download/parse fails, any cell fails to parse as T, or the CSV has no rows.