Skip to content

Test

Base classes

Name Children Inherits
TextOp
datacook.engine.ops.strings

⋔ Inheritance diagram

graph TD
  2394886620["strings.Test"]
  4127298390["strings.TextOp"]
  2451904138["series.SeriesOp"]
  124287307["series.ColumnOp"]
  1539482213["base.Op"]
  2751680898["builtins.object"]
  4127298390 --> 2394886620
  2451904138 --> 4127298390
  124287307 --> 2451904138
  1539482213 --> 124287307
  2751680898 --> 1539482213

🛈 DocStrings

Bases: TextOp

Source code in src/datacook/engine/ops/strings.py
class Test(TextOp):
    id = "str_test"
    title = _("Test text")
    description = _("True / False per cell: contains, starts with, ends with or matches a pattern.")
    icon = "mdi.text-search"
    method_param = "mode"
    positional = ("pat",)

    class Params(series.ColumnParams, _TestOptions):
        suffix: str = Field(
            "_match",
            title=N_("Suffix for new columns"),
            description=N_("Empty: replace the columns. Otherwise the results are new columns."),
        )

:fa-brands-github: Show source on GitHub