π 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
π Description
The codebase is generating multiple deprecation warnings due to the use of Polars'
is_inmethod with collections of the same datatype. The warning specifically states:The issue affects multiple files across the codebase where
is_inis used to check membership of Series/DatFrame elements against other Series/DataFrame columns. The affected pattern is typically:Instead of the deprecated
is_in, we need to useimplode()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