Skip to content

[Enh]: Support int_range #2722

@dangotbanned

Description

@dangotbanned

Related

Description

polars.int_range was considered in (#2307) but ultimately wasn't the right fit.

I still think it's got a lot of utility on it's own and could be a model for a future date_range.

Really anywhere a package might be using range or np.arange - we'd be able to offer an alternative that:

  1. Is performant
  2. Doesn't depend on anything beyond backend
    i. Similar to other entry points we have like 1, 2
  3. Gives you direct access to the rest of the narwhals API
    i. nw.int_range(..., eager=True) -> nw.Series
    ii. nw.int_range(..., eager=False) -> nw.Expr

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions