Shapash

Latest version: v2.7.8

Safety actively analyzes 714860 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 8

2.7.2

What's Changed
This release focuses on bug fixes to improve stability and functionality:

- **Fixed default color in Local explanation plot**: Resolved an issue where the default colors in the local explanation plot were incorrect.
- **Improved pagination for large feature sets**: Addressed a bug where pagination would not work properly.
- **Restored Shapash icon in the webapp**: Replaced the unintended dash icon with the correct Shapash icon in the web application.
- **Removed unnecessary dataframe print in `plot_scatter_prediction.py`**: Eliminated unintended dataframe printing, which improves clarity in scatter plot generation.

Contributed by [guillaume-vignal](https://github.com/guillaume-vignal) in [#597](https://github.com/MAIF/shapash/pull/597).

**Full Changelog**: https://github.com/MAIF/shapash/compare/v2.7.1...v2.7.2

2.7.1

What's Changed

- **Fix pyproject.toml** by [tbloron](https://github.com/tbloron) in [#592](https://github.com/MAIF/shapash/pull/592)
- This fix resolves an issue where the `shapash` module was not importable after installation, resulting in a `ModuleNotFoundError`. The problem was traced back to the `pyproject.toml` configuration file, which has now been corrected. The fix ensures that Shapash installs and imports correctly in all environments.

Bug Fix Details:

- Users installing version 2.7.0 encountered a packaging issue that prevented `shapash` from being properly imported in Python environments, including Conda environments using Python 3.10. This version addresses that issue, making the module accessible after installation.

Installation Instructions:

To upgrade to the latest version, run:

bash
pip install --upgrade shapash


Full Changelog:

[Compare v2.7.0...v2.7.1](https://github.com/MAIF/shapash/compare/v2.7.0...v2.7.1)

2.7.0

What's Changed

Documentation Updates
- **Update Figures in Documentation** by [guillaume-vignal](https://github.com/guillaume-vignal) ([#568](https://github.com/MAIF/shapash/pull/568))
Updated the figures in the documentation to reflect changes introduced in version 2.6.0. Some unnecessary files were also removed.

New Features
- **Feature Importance Pagination** by [guillaume-vignal](https://github.com/guillaume-vignal) ([#574](https://github.com/MAIF/shapash/pull/574))
Introduced pagination for the feature importance plot, allowing users to navigate through all features. This is especially useful for models with a large number of features, as users can now explore feature contributions beyond the top few with improved usability and dynamic page handling.

- **Subpopulation-based Feature Importance Plots** by [guillaume-vignal](https://github.com/guillaume-vignal) ([#579](https://github.com/MAIF/shapash/pull/579))
Added two new plots:
- *Local Importance Divergence Metric*: Highlights features with varying importance across different subpopulations.
- *Feature Importance Curve Plot*: Displays how feature importance fluctuates across the dataset, offering more granular insights.

Enhancements
- **SmartPlotter Refactoring** by [guillaume-vignal](https://github.com/guillaume-vignal) ([#582](https://github.com/MAIF/shapash/pull/582))
Simplified the `SmartPlotter` class by decoupling each plot type into its own function file. This improves modularity, making the code more maintainable and testable. Future plots can now be easily added without altering the core structure.

- **Removed Flask Version Constraint** by [guillaume-vignal](https://github.com/guillaume-vignal) ([#584](https://github.com/MAIF/shapash/pull/584))
Lifted the Flask version constraint (<2.3.0) as the compatibility issue with Dash has been resolved. Shapash now supports the latest versions of Flask, enhancing security, compatibility, and performance.

- **Dataset Sorting** by [sam94700](https://github.com/sam94700) ([#575](https://github.com/MAIF/shapash/pull/575))
Added the ability to sort datasets by features, improving data management.

Bug Fixes
- **Contribution Plot for Boolean Features** by [sam94700](https://github.com/sam94700) ([#586](https://github.com/MAIF/shapash/pull/586))
Fixed a bug affecting the contribution plot for boolean features, ensuring accurate visualizations.

- **DataFrame Transformation Warning Fix** by [guillaume-vignal](https://github.com/guillaume-vignal) ([#589](https://github.com/MAIF/shapash/pull/589))
Refactored DataFrame column transformations to avoid future warnings from pandas regarding in-place modifications.

Development Tools
- **Add Ruff Linter and Formatter** by [tbloron](https://github.com/tbloron) ([#585](https://github.com/MAIF/shapash/pull/585))
Integrated the `ruff` linter and code formatter into the project. This also includes updates to the GitHub workflow and the addition of a `pyproject.toml` configuration file.

New Contributors
- **[sam94700](https://github.com/sam94700)** made their first contribution in [#575](https://github.com/MAIF/shapash/pull/575)
- **[tbloron](https://github.com/tbloron)** made their first contribution in [#585](https://github.com/MAIF/shapash/pull/585)

**Full Changelog**: [v2.6.0...v2.7.0](https://github.com/MAIF/shapash/compare/v2.6.0...v2.7.0)

2.6.0

What's Changed

<div id="release-thumbnail">
Major features announcements in this release are:
<ul>
<li>Contribution Plot Improvement: Enhanced the contribution plot to provide more insightful visualizations.</li>
<li>Shapash Report Enhancement: Upgraded the Shapash report with new functionalities and optimizations.</li>
</ul>
</div>

Added
* Feature/contribution plot improvement by guillaume-vignal in https://github.com/MAIF/shapash/pull/553
* Feature/shapash report improvement by guillaume-vignal in https://github.com/MAIF/shapash/pull/564

Fixed
* Fix color style. by MLecardonnel in https://github.com/MAIF/shapash/pull/561
* fix documentation generation bug due to numpy 2.0 by guillaume-vignal in https://github.com/MAIF/shapash/pull/566
* Fix interaction plot bug on labels by guillaume-vignal in https://github.com/MAIF/shapash/pull/563


**Full Changelog**: https://github.com/MAIF/shapash/compare/v2.5.1...v2.6.0

2.5.1

What's Changed
* Temporary Fix for NumPy 2.0 Incompatibility by guillaume-vignal in https://github.com/MAIF/shapash/pull/559


**Full Changelog**: https://github.com/MAIF/shapash/compare/v2.5.0...v2.5.1

2.5.0

What's Changed

Breaking changes
* Dropped support for 3.8 in MLecardonnel in https://github.com/MAIF/shapash/pull/538
* Support only Scikit learn>=1.4.0 by MLecardonnel in https://github.com/MAIF/shapash/pull/543
* Support only pandas>=2.1.0 by guillaume-vignal in https://github.com/MAIF/shapash/pull/551
* Support only shap>=0.45.0 by guillaume-vignal in https://github.com/MAIF/shapash/pull/552

Added
* Feature python 3.12 support by MLecardonnel in https://github.com/MAIF/shapash/pull/538
* Optimization: compute predictions and probabilities directly in the compile step by guillaume-vignal in https://github.com/MAIF/shapash/pull/535, https://github.com/MAIF/shapash/pull/544

Fixed
* Fixed report demo by MLecardonnel in https://github.com/MAIF/shapash/pull/540, https://github.com/MAIF/shapash/pull/541, https://github.com/MAIF/shapash/pull/546, https://github.com/MAIF/shapash/pull/547, https://github.com/MAIF/shapash/pull/548, https://github.com/MAIF/shapash/pull/549

**Full Changelog**: https://github.com/MAIF/shapash/compare/v2.4.3...v2.5.0

Page 2 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.