Skip to content

Commit

Permalink
fix #1587
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Dec 30, 2023
1 parent c9b136b commit 1deb06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lifelines/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def _group_event_table_by_intervals(event_table, intervals) -> pd.DataFrame:
)
# convert columns from multiindex
event_table.columns = event_table.columns.droplevel(1)
return event_table.bfill()
return event_table.bfill().fillna(0)


def survival_events_from_table(survival_table, observed_deaths_col="observed", censored_col="censored"):
Expand Down

0 comments on commit 1deb06c

Please sign in to comment.