Skip to content

ReadOp

Sub classes

Name Children Inherits
ReadCsv
datacook.engine.ops.sources
    ReadParquet
    datacook.engine.ops.sources
      ReadFeather
      datacook.engine.ops.sources
        ReadJson
        datacook.engine.ops.sources
          ReadExcel
          datacook.engine.ops.sources
            ReadClipboard
            datacook.engine.ops.sources

              Base classes

              Name Children Inherits
              CallOp
              datacook.engine.ops.base
              An op that is one pandas call.

              ⋔ Inheritance diagram

              graph TD
                1625742177["sources.ReadOp"]
                3484306131["base.CallOp"]
                1539482213["base.Op"]
                2751680898["builtins.object"]
                3484306131 --> 1625742177
                1539482213 --> 3484306131
                2751680898 --> 1539482213

              🛈 DocStrings

              Bases: CallOp

              A reader: a source op with file extensions (the format registry looks them up).

              Source code in src/datacook/engine/ops/sources.py
              class ReadOp(base.CallOp):
                  """A reader: a source op with file extensions (the format registry looks them up)."""
              
                  n_inputs = 0
                  category = categories.SOURCE
                  icon = "mdi.file-table-outline"
                  positional: ClassVar[tuple[str, ...]] = ("path",)
                  always: ClassVar[tuple[str, ...]] = ("dtype_backend",)
                  extensions: ClassVar[tuple[str, ...]] = ()
                  format_id: ClassVar[str] = ""
              

              :fa-brands-github: Show source on GitHub