ReadExcel
Base classes
| Name |
Children |
Inherits |
ReadOp datacook.engine.ops.sources A reader: a source op with file extensions (the format registry looks them up). |
|
|
⋔ Inheritance diagram
graph TD
82498650["sources.ReadExcel"]
1625742177["sources.ReadOp"]
3484306131["base.CallOp"]
1539482213["base.Op"]
2751680898["builtins.object"]
1625742177 --> 82498650
3484306131 --> 1625742177
1539482213 --> 3484306131
2751680898 --> 1539482213
🛈 DocStrings
Bases: ReadOp
Source code in src/datacook/engine/ops/sources.py
| class ReadExcel(ReadOp):
id = "read_excel"
format_id = "excel"
title = _("Excel file")
description = _("Read a sheet of an Excel workbook.")
function = "pd.read_excel"
extensions = (".xlsx", ".xlsm")
requires = ("openpyxl",)
extra = "excel"
class Params(base.Params):
path: str = Field(title=N_("File"), json_schema_extra={"widget": "file"})
sheet_name: str | int = Field(0, title=N_("Sheet"))
skiprows: int | None = Field(None, title=N_("Skip rows"), ge=0)
dtype_backend: DtypeBackend = Field("pyarrow", title=N_("Data types"))
|
:fa-brands-github: Show source on GitHub