Migration to Narwhals: Add Polars Support

Đang mở
#992 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@ashwini-m-hub đang làm issue này rồi.

Từ ngày 12/9/2026.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
data, machine-learning

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Python
Star
2.3k
Fork
391
Merge trung bình
11 giờ 34 phút
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của feature-engine/feature_engine

Tất cả issue của feature-engine/feature_engine

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.