Skip to content

Fix: Resolve pandas Styler.applymap AttributeError from pyOpenSci review#14

Merged
tradertanmay merged 6 commits into
mainfrom
fix/pandas-applymap-deprecation
Apr 29, 2026
Merged

Fix: Resolve pandas Styler.applymap AttributeError from pyOpenSci review#14
tradertanmay merged 6 commits into
mainfrom
fix/pandas-applymap-deprecation

Conversation

@tradertanmay
Copy link
Copy Markdown
Contributor

This PR addresses feedback from the pyOpenSci review process.
Related to: pyOpenSci/software-submission#280

Changes

  • Fixed pandas >= 2.1.0 compatibility bug: Addressed the AttributeError: 'Styler' object has no attribute 'applymap' raised during the community review when uploading example data.
  • Replaced deprecated methods: Updated .applymap() to .map() across all UI files that render styled DataFrames (ranking.py, model_dev.py, drift.py, inference.py).
  • Updated Dependencies: Bumped the minimum pandas requirement in pyproject.toml from >=2.0 to >=2.1.0 to ensure stable behavior with the new Styler.map() method going forward.

@tradertanmay tradertanmay merged commit 37de516 into main Apr 29, 2026
4 checks passed
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