fixing typeerrors addresses Trusted-AI/AIF360/issues/560#561
Open
RituSinghme wants to merge 2 commits intoTrusted-AI:mainfrom
Open
fixing typeerrors addresses Trusted-AI/AIF360/issues/560#561RituSinghme wants to merge 2 commits intoTrusted-AI:mainfrom
RituSinghme wants to merge 2 commits intoTrusted-AI:mainfrom
Conversation
RituSinghme
commented
Mar 24, 2026
- Replace np.issubdtype() with pd.api.types.is_numeric_dtype() to handle pandas StringDtype columns
- Convert string columns to object dtype before assigning float labels protected attribute values, avoiding StringDtype rejection of floats
- Replace DataFrame.applymap() with .map() (removed in pandas 2.x)
- Add _get_requires_proba() helper in postprocessing/init.py to fall back to _more_tags() when _get_tags() is unavailable (sklearn 1.6+)
d4e8f9d to
20b1da2
Compare
added 2 commits
March 24, 2026 02:55
Signed-off-by: Ritu Singh <ritusingh14@Ritus-MacBook-Pro.local> Signed-off-by: RituSinghme <me.ritusingh.ca@gmail.com>
Signed-off-by: Ritu Singh <ritusingh14@Ritus-MacBook-Pro.local> Signed-off-by: RituSinghme <me.ritusingh.ca@gmail.com>
20b1da2 to
74c767c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.