Skip to content

Commit

Permalink
Fix pandas FutureWarning about the use of take_last
Browse files Browse the repository at this point in the history
Original warning:

    FutureWarning: the take_last=True keyword is deprecated, use keep='last' instead
  • Loading branch information
amacd31 committed Nov 12, 2015
1 parent 42c05aa commit 2d12eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phildb/log_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def read(self, as_at_datetime):
df.meta = meta_ids
df.replacement_time = replacement_times

idx = ~df.index.duplicated(take_last=True)
idx = ~df.index.duplicated(keep = 'last')

df = df.ix[idx]

Expand Down

0 comments on commit 2d12eed

Please sign in to comment.