BUG: Fix sparse doctests for SciPy 1.14.0
- [X] closes #59093
- [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).

Thanks @lysnikolaou 