[MNT] handle pandas future warnings - #891
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #891 +/- ##
=======================================
Coverage 98.22% 98.22%
=======================================
Files 113 113
Lines 4842 4844 +2
Branches 768 769 +1
=======================================
+ Hits 4756 4758 +2
Misses 55 55
Partials 31 31 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hey @ankitlade12 @glevv @david-cortes I would appreciate your input on the changes in My understanding is that the current pandas implementation will automatically convert to nan values not present in categories. But pandas 4 will fail instead, so we need to explicitly convert the values to nan before the transformation. Please correct me if I am wrong. I haven't used the categorical dtype in pandas, so not my forte. |
|
Hi @solegalli, You are absolutely correct. Your understanding aligns with the direction Pandas is heading in terms of stricter categorical data handling. Why this is necessary:
Conclusion:The current implementation in I'm happy with this approach as it makes the transformers much more resilient to the upcoming Pandas changes. |
No description provided.