ExcelSourceOptions¶
Connection options for the Excel source connector.
- class scamander.models.source_config.excel.ExcelSourceOptions(*, file_path: str, sheet_name: str | int = 0, header: bool = True, skip_rows: int = 0, infer_schema: bool = True)¶
Basisklassen:
BaseModelConnection options for the Excel source connector.
- file_path¶
Path to the Excel file (
.xlsxor.xls) on the platform filesystem (e.g. a DBFS path, an ABFS URI, or a local path for testing).- Type:
str
- sheet_name¶
Name or zero-based index of the worksheet to read. Defaults to
0(the first sheet).- Type:
str | int
- header¶
Whether the first row (after
skip_rows) contains column names. Defaults toTrue.- Type:
bool
- skip_rows¶
Number of rows to skip before the header/data begins. Defaults to
0.- Type:
int
- infer_schema¶
When
True, pandas samples the sheet to infer column data types. Set toFalseto read all columns asSTRING. Defaults toTrue.- Type:
bool
- model_config = {}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].