polars_io::csv::read

Function count_rows

Source
pub fn count_rows(
    path: &Path,
    separator: u8,
    quote_char: Option<u8>,
    comment_prefix: Option<&CommentPrefix>,
    eol_char: u8,
    has_header: bool,
) -> PolarsResult<usize>
Available on crate features csv or json only.
Expand description

Read the number of rows without parsing columns useful for count(*) queries