CamDavidsonPilon / lifelines

Survival analysis in Python
lifelines.readthedocs.org
MIT License
2.38k stars 560 forks source link

scipy.integrate.trapz is deprecated from SciPy 1.14.0 #1632

Closed skjongithub closed 2 months ago

skjongithub commented 2 months ago

Thank you very much for creating and maintaining such a useful package. I'd like to report an issue reguarding to the title.

With SciPy >= 1.14.0, the lifelines/fitters package will cause: cannot import name 'trapz' from 'scipy.integrate'

In SciPy 1.14.0 Releast Note ( https://docs.scipy.org/doc/scipy/release/1.14.0-notes.html#expired-deprecations ) In expired deprecation section: scipy.integrate.{simps,trapz,cumtrapz} have been removed in favour of simpson, trapezoid, and cumulative_trapezoid.

Maybe it's only needed that changing the import name?

skjongithub commented 2 months ago

Oh I noticed that this issue is solved in 0.29.0. Sorry, I'll close this issue.