Migration to Narwhals: Add Polars Support

Aperta
#992 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ashwini-m-hub ci sta già lavorando.

Dal 12/9/2026.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

This is an umbrella issue with no specific files named, so start by checking the narwhals-migration branch and any existing per-transformer PRs to see which transformers are already covered. Ask the maintainer (@FBruzzesi) which single transformer is open before starting. Done means one transformer runs on both Pandas and Polars with its tests covering both backends, in its own focused PR.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Overview

This is an umbrella issue for the complete migration of feature-engine to use Narwhals, enabling support for Polars dataframes in addition to Pandas.

Scope

The migration involves updating every single transformer in the library to work with Narwhals, ensuring compatibility with both Pandas and Polars backends.

Migration Details

  • Branch: narwhals-migration
  • Strategy: One PR per transformer for focused, reviewable changes
  • Goal: Enable users to use Polars dataframes seamlessly alongside Pandas

Work Items

Each transformer will need to be updated to:

  1. Use Narwhals API for dataframe operations
  2. Maintain backward compatibility with Pandas
  3. Support Polars as an additional backend
  4. Update tests to cover both backends

Expected Outcomes

  • Full Narwhals integration across all transformers
  • Seamless support for both Pandas and Polars dataframes
  • Consistent API experience for users regardless of backend selection

Related

Migration happening in the narwhals-migration branch.


FYI @FBruzzesi

Lingua principale
Python
Stelle
2.3k
Fork
391
Merge medio
11h 34m
PR unite (30g)
11

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di feature-engine/feature_engine

Tutte le issue di feature-engine/feature_engine

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.