Skip to content

[Enh]: Support for top-level function pl.repeat() #3000

@MariusMerkleQC

Description

@MariusMerkleQC

We would like to learn about your use case. For example, if this feature is needed to adopt Narwhals in an open source project, could you please enter the link to it below?

Are you planning to support pl.repeat()? I have a function that returns a pl.Expr: return pl.repeat(pl.lit(False), pl.len()) which I'd like to narwhalify. However, I cannot find a nw.repeat() function among the top-level functions specified in the API documentation.

Please describe the purpose of the new feature or describe the problem to solve.

See above

Suggest a solution if possible.

No response

If you have tried alternatives, please describe them below.

I tried returning a single pl.lit(False) or a pl.Series() but this is not equivalent.

Additional information that may help us understand your needs.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions