Skip to content

Commit

Permalink
Conform with pandas API changes. .sort will be deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanronen committed Apr 27, 2016
1 parent 98e3923 commit 4d55647
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 4d55647

Please sign in to comment.