from lifelines import (
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/lifelines/init.py:4: in
from lifelines.fitters.weibull_fitter import WeibullFitter
/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/lifelines/fitters/init.py:21: in
from scipy.integrate import trapz
E ImportError: cannot import name 'trapz' from 'scipy.integrate' (/opt/hostedtoolcache/Python/3.11.9/x64/lib/python3.11/site-packages/scipy/integrate/init.py)
with the scipy pre-release version
scipy.integrate.trapz, scipy.integrate.cumtrapz, and scipy.integrate.simps have been deprecated in favour of scipy.integrate.trapezoid, scipy.integrate.cumulative_trapezoid, and scipy.integrate.simpson respectively and will be removed in SciPy 1.14.