Skip to content

Repeat

Base classes

Name Children Inherits
TextOp
datacook.engine.ops.strings

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: TextOp

Source code in src/datacook/engine/ops/strings.py
class Repeat(TextOp):
    id = "str_repeat"
    title = _("Repeat text")
    description = _("Repeat each text n times.")
    icon = "mdi.repeat"
    method = "repeat"
    positional = ("repeats",)

    class Params(series.ColumnParams):
        repeats: int = Field(2, title=N_("Repeats"), ge=0)

:fa-brands-github: Show source on GitHub