Function repeat

  • Repeat a single value n times and collect into a Series.

    Type Parameters

    • V

    Parameters

    • value: V

      Value to repeat.

    • n: number

      Number of repeats

    • name: string = ""

      Optional name of the Series

    Returns pl.Series


    > const s = pl.repeat("a", 5)
    > s.toArray()
    ["a", "a", "a", "a", "a"]