Closed DrShushen closed 1 year ago
There appears to be a bug in lifelines 0.27.5 with Python 3.7.
0.27.5
To replicate:
conda create -n env_lifelines python=3.7
pip install "lifelines==0.27.5"
import lifelines
You get SyntaxError as below - looks like an fstring issue:
SyntaxError
fstring
import lifelines Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/<...>/python3.7/site-packages/lifelines/__init__.py", line 5, in <module> from lifelines.fitters.weibull_fitter import WeibullFitter File "<fstring>", line 1 (minimum_results=) ^ SyntaxError: invalid syntax
Note that:
0.27.4
Oh shoot, that feature is py3.8+ only. I'll update with a fix!
0.27.6 is released now on PyPI
Yes this feature f"{minimum_results=}" is only supported by py3.8+.
f"{minimum_results=}"
There appears to be a bug in lifelines
0.27.5
with Python 3.7.To replicate:
conda create -n env_lifelines python=3.7
0.27.5
, e.g.pip install "lifelines==0.27.5"
import lifelines
You get
SyntaxError
as below - looks like anfstring
issue:Note that:
0.27.4
or earlier.