Skip to content

fixing typeerrors addresses Trusted-AI/AIF360/issues/560#561

Open
RituSinghme wants to merge 2 commits intoTrusted-AI:mainfrom
RituSinghme:feat/fix-typeerror
Open

fixing typeerrors addresses Trusted-AI/AIF360/issues/560#561
RituSinghme wants to merge 2 commits intoTrusted-AI:mainfrom
RituSinghme:feat/fix-typeerror

Conversation

@RituSinghme
Copy link
Copy Markdown

  • 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+)

@RituSinghme RituSinghme force-pushed the feat/fix-typeerror branch 2 times, most recently from d4e8f9d to 20b1da2 Compare March 24, 2026 09:52
Ritu Singh 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant