Skip to content

ReadFeather

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
  1031731818["sources.ReadFeather"]
  1625742177["sources.ReadOp"]
  3484306131["base.CallOp"]
  1539482213["base.Op"]
  2751680898["builtins.object"]
  1625742177 --> 1031731818
  3484306131 --> 1625742177
  1539482213 --> 3484306131
  2751680898 --> 1539482213

🛈 DocStrings

Bases: ReadOp

Source code in src/datacook/engine/ops/sources.py
class ReadFeather(ReadOp):
    id = "read_feather"
    format_id = "feather"
    title = _("Feather / Arrow IPC file")
    description = _("Read an Arrow IPC (Feather v2) file.")
    function = "pd.read_feather"
    extensions = (".feather", ".arrow", ".ipc")

    class Params(base.Params):
        path: str = Field(title=N_("File"), json_schema_extra={"widget": "file"})
        columns: list[str] | None = Field(None, title=N_("Columns"))
        dtype_backend: DtypeBackend = Field("pyarrow", title=N_("Data types"))

:fa-brands-github: Show source on GitHub