[Bug]: Solving polars Deprecation warnings for `is_in`
Đánh giá
Issue này chưa được đánh giá.
Mô tả
📝 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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của mesa/mesa-frames
-
[Bug]: Registering an empty AgentSet in Model.sets raises ColumnNotFoundError for "unique_id"Đang mởbug triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
mesa/mesa-frames#204 ·
-
Mesa-frames 0.2.0Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
mesa/mesa-frames#186 · 10 bình luận ·
-
feature triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
mesa/mesa-frames#177 · 1 bình luận ·
-
[Enhancement] : agents selection in AgentsDf would be better if it returns agent_idx/name as keyĐang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 40/100
mesa/mesa-frames#162 · 1 bình luận ·
-
[Feature]: Easy seed accessor across the entire codebaseCó thể làm lại được @falloficaruss đã nhận 327 ngày trước và không có pull request nào đang mở. Đang mởfeature good first issue Sprints!
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
mesa/mesa-frames#159 · 3 bình luận ·
Tất cả issue của mesa/mesa-frames
Issue tương tự
-
question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
conda-forge/vc-feedstock#132 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
limitlessprojects/Go-Hybrid#3342 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
UKGovernmentBEIS/inspect_ai#6268 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
LSSTDESC/rail_sompz#42 ·
-
All tests fail with 'EXITED with status 3' on pytest 9.2.0 (TestReport._id is not marshallable)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
pytest-dev/pytest-forked#113 ·