MAIF / shapash

🔅 Shapash: User-friendly Explainability and Interpretability to Develop Reliable and Transparent Machine Learning Models
https://maif.github.io/shapash/
Apache License 2.0
2.71k stars 331 forks source link

Selecting an index via the Index input box for integers on Windows fails #428

Closed MLecardonnel closed 1 year ago

MLecardonnel commented 1 year ago

Shapash Webapp do not display the good local explaination plot when selecting an index via the Index input box for integer indexes. This issue occurs on Windows.

This comes from the shapash.webapp.utils.utils.check_row method where there is a type comparison:

np.issubdtype(type(df.index[0]), np.dtype(int).type)

Python version :3.9

Shapash version :2.2.2

Operating System :Windows