Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 23, 2024
1 parent 2f731a3 commit 35ed4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ehrapy/tools/_sa.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def cox_ph(adata: AnnData, duration_col: str, event_col: str, entry_col: str = N
df = anndata_to_df(adata)
keys = [duration_col, event_col]
if entry_col:
keys.append(entry_col)
keys.append(entry_col)
df = df[keys]
cph = CoxPHFitter()
cph.fit(df, duration_col, event_col, entry_col=entry_col)
Expand Down

0 comments on commit 35ed4f3

Please sign in to comment.