Skip to content

Commit

Permalink
Merge 4d55647 into 98e3923
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanronen committed Apr 27, 2016
2 parents 98e3923 + 4d55647 commit bd39343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lifelines/fitters/coxph_fitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def fit(self, df, duration_col, event_col=None,
"""
df = df.copy()
# Sort on time
df.sort(duration_col, inplace=True)
df.sort_values(by=duration_col, inplace=True)

# remove strata coefs
self.strata = strata
Expand Down

0 comments on commit bd39343

Please sign in to comment.