#[non_exhaustive]pub struct LoadSheetOrTableOptions {
pub header_row: Option<usize>,
pub column_names: Option<Vec<String>>,
pub skip_rows: SkipRows,
pub n_rows: Option<usize>,
pub schema_sample_rows: Option<usize>,
pub dtype_coercion: DTypeCoercion,
pub selected_columns: SelectedColumns,
pub dtypes: Option<DTypes>,
pub skip_whitespace_tail_rows: bool,
pub whitespace_as_null: bool,
}Expand description
Options for loading a sheet or table.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.header_row: Option<usize>The index of the row containing the column labels. If None, the provided headers are used.
Any row before the header row is skipped.
column_names: Option<Vec<String>>The column names to use. If None, the column names are inferred from the header row.
skip_rows: SkipRowsHow rows should be skipped.
n_rows: Option<usize>The number of rows to read. If None, all rows are read.
schema_sample_rows: Option<usize>The number of rows to sample for schema inference. If None, all rows are sampled.
dtype_coercion: DTypeCoercionHow data types should be coerced.
selected_columns: SelectedColumnsThe columns to select.
dtypes: Option<DTypes>Override the inferred data types.
skip_whitespace_tail_rows: boolSkip rows at the end of the sheet/table containing only whitespace and null values.
whitespace_as_null: boolConsider cells containing only whitespace as null values.
Implementations§
Source§impl LoadSheetOrTableOptions
impl LoadSheetOrTableOptions
Sourcepub fn new_for_sheet() -> Self
pub fn new_for_sheet() -> Self
Returns a new LoadSheetOrTableOptions instance for loading a sheet. header_row is set to
Some(0)
Sourcepub fn new_for_table() -> Self
pub fn new_for_table() -> Self
Returns a new LoadSheetOrTableOptions instance for loading a sheet. header_row is set to
None