-
Notifications
You must be signed in to change notification settings - Fork 16
Labels
Sprints!A task that might be good to tackle during sprints!A task that might be good to tackle during sprints!bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersmaintenanceGeneral maintenance tasks, code refactoring, or cleanup.General maintenance tasks, code refactoring, or cleanup.
Description
📝 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
Metadata
Metadata
Assignees
Labels
Sprints!A task that might be good to tackle during sprints!A task that might be good to tackle during sprints!bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersmaintenanceGeneral maintenance tasks, code refactoring, or cleanup.General maintenance tasks, code refactoring, or cleanup.