Skip to content

META: Use narwhals in codebase #33958

Open

Description

@lorentzenchr

#31127 was merged and so we can now rely on narwhals.

Reasons for more narwhals (nw)

  • NW simplifies internal code by treating all dataframes (pandas, polars, arrow) with a unified API
  • NW can make code faster:
    • for categorical feature support in OrdinalEncoder and other places
    • by use of narwhals expression API instead of array operations, e.g. group_by(..).agg(..)
  • Possibly (not yet decided) narwhals-in, narwhals-out (set_output for transform)

TODO

Activity

  1. added
    Needs Triage
    on May 9, 2026
  2. added
    Meta-issue
    and removed
    Needs Triage
    on May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Meta-issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions