aws / amazon-sagemaker-clarify

Fairness Aware Machine Learning. Bias detection and mitigation for datasets and models.
Apache License 2.0
66 stars 38 forks source link

Fix compatibility issues with pandas 2.0 #140

Closed xgchena closed 1 year ago

xgchena commented 1 year ago

Issue, if available:

https://tiny.amazon.com/kzvlpcax

Description of changes:

There is a new pandas release (2.0.0) and then some test cases of the library start failing with errors like

Per investigation the rootcause is that the pandas 2.0 deprecated non-keyword arguments of several methods including drop(), and it also deprecated Series.append.

The PR has two commits,

Testing Done

devtool all and devtool integ_tests

Tried the tests with pandas 1.4.x, pandas 1.5.x and pandas 2.0.x

Clarify container test

Tried the tests with both pandas 1.4.x, "devtool all" passed.

Test cases in DLC repository

Here is the test code


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.