[Bug]: Solving polars Deprecation warnings for `is_in`

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

@adamamer20 đang làm issue này rồi.

Từ ngày 30/8/2025.

  • #178 của @adamamer20 — đã merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug good first issue maintenance Sprints!
📝 Description

The codebase is generating multiple deprecation warnings due to the use of Polars' is_in method with collections of the same datatype. The warning specifically states:

/home/adam/projects/mesa-frames/mesa_frames/concrete/agentset.py:453: DeprecationWarning: is_in with a collection of the same datatype is ambiguous and deprecated.
Please use implode to return to previous behavior.

See https://github.com/pola-rs/polars/issues/22149 for more information.

The issue affects multiple files across the codebase where is_in is used to check membership of Series/DatFrame elements against other Series/DataFrame columns. The affected pattern is typically:

series.is_in(other_series) 

Instead of the deprecated is_in, we need to use implode() to maintain the current behavior, as suggested by the deprecation message.

🔄 Steps to Reproduce

No response

🎯 Expected Behavior

No response

🚨 Actual Behavior

No response

🖥️ Python Version

No response

Operating System

No response

Relevant Packages

polars: >=1.30.0

📊 Relevant Log Output

No response

➕ Additional Context

No response

Ngôn ngữ chính
Python
Star
44
Fork
20
Merge trung bình
1 phút
Pull request đã merge (30 ngày)
1

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

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 mesa/mesa-frames

Tất cả issue của mesa/mesa-frames

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.