Excel Loader
Pandas Excel reader.
Pandas parser for .xlsx files.
PandasExcelReader ¶
Bases: BaseReader
Pandas-based CSV parser.
Parses CSVs using the separator detection from Pandas read_csv
function.
If special parameters are required, use the pandas_config
dict.
Args:
1 2 3 4 |
|
Source code in libs\kotaemon\kotaemon\loaders\excel_loader.py
load_data ¶
Parse file and extract values from a specific column.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file |
Path
|
The path to the Excel file to read. |
required |
include_sheetname |
bool
|
Whether to include the sheet name in the output. |
False
|
sheet_name |
Union[str, int, None]
|
The specific sheet to read from, default is None which reads all sheets. |
None
|
Returns:
Type | Description |
---|---|
List[Document]
|
List[Document]: A list of`Document objects containing the values from the specified column in the Excel file. |