Skip to content

Commit

Permalink
fix tst
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Jan 3, 2024
1 parent f9e778e commit 5f348df
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
#### 0.28.0 - Upcoming
- Fixes bins that are far into the future with using `survival_table_from_events`, see #1587
- Removed `sklean_adaptor`. It was a terrible hack, and causing more confusion and support debt than I want. This cleans up our API and simplifies the library. ✨ There's no replacement, and I doubt I'll introduce one ✨
- Fix Pandas 2.0 compatibility.
- Fix pandas>=2.0 compatibility.
- Fix overflow issue in NelsonAalenfitter, #1585
- officially drop support for < py3.9
- update some dependencies (pandas >= 1.2)

#### 0.27.8 - 2023-09-13
- Estimators now have `.label` property
Expand Down
6 changes: 3 additions & 3 deletions lifelines/tests/test_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,9 +587,9 @@ def test_lists_and_tuples_as_input(self, positive_sample_lifetimes, univariate_f
assert_frame_equal(with_list, with_array)
assert_frame_equal(with_tuple, with_array)

with_array = fitter.fit_left_censoring(T, C).survival_function_
with_list = fitter.fit_left_censoring(list(T), list(C)).survival_function_
with_tuple = fitter.fit_left_censoring(tuple(T), tuple(C)).survival_function_
with_array = fitter.fit_left_censoring(T).survival_function_
with_list = fitter.fit_left_censoring(list(T)).survival_function_
with_tuple = fitter.fit_left_censoring(tuple(T)).survival_function_
assert_frame_equal(with_list, with_array)
assert_frame_equal(with_tuple, with_array)

Expand Down
2 changes: 1 addition & 1 deletion reqs/base-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
numpy>=1.14.0,<2.0
scipy>=1.2.0
pandas>=1.0.0
pandas>=1.2.0
matplotlib>=3.0
autograd>=1.5
autograd-gamma>=0.3
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
PACKAGE_DATA = {"lifelines": ["datasets/*"]}
DESCRIPTION = "Survival analysis in Python, including Kaplan Meier, Nelson Aalen and regression"
URL = "https://github.com/CamDavidsonPilon/lifelines"
PYTHON_REQ = ">=3.7"
PYTHON_REQ = ">=3.9"

setup(
name=NAME,
Expand Down

0 comments on commit 5f348df

Please sign in to comment.