let gaf_df = LazyCsvReader::new(file_path.clone())
.with_has_header(false)
.with_separator(b'\t')
.finish()?;
let gaf_df_select = gaf_df
.select([
col("column_1").alias("read_id"),
col("column_2").alias("length"),
col("column_6").alias("path"),
col("column_12").alias("mapq")
])
.collect()?;
This is my code. I found the number of threads can be set for CsvReadOptions with with_n_threads, but I don't know how to set the number of threads for LazyCsvReader. I can't set with_n_threads for LazyCsvReader.
LazyCsvReader::with_n_threadsmethod, similar in spirit to this pull request.