narwhals icon indicating copy to clipboard operation
narwhals copied to clipboard

[Enh]: str zfill

Open williambdean opened this issue 7 months ago • 3 comments

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?

I would like to use narwhals for the latent-calendar project. However, it uses zfill

https://github.com/williambdean/latent-calendar/blob/07ffd832188098af21a469470bb988560d7b6e80/latent_calendar/transformers.py#L155

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

pad a string

Suggest a solution if possible.

use the pandas, polars, spark, etc functionality

If you have tried alternatives, please describe them below.

looked through the docs

Additional information that may help us understand your needs.

No response

williambdean avatar May 23 '25 09:05 williambdean

defo in scope, thanks for the request!

MarcoGorelli avatar May 23 '25 09:05 MarcoGorelli

Amazing. I am happy to contribute as well

williambdean avatar May 23 '25 10:05 williambdean

sure that would be great! check CONTRIBUTING.md for how to get started

MarcoGorelli avatar May 23 '25 10:05 MarcoGorelli