It would work similar to drop_duplicates (same interface), but would only remove consecutive duplicates (like Unix's uniq does). So to in order to remove all duplicates with this function, the DataFrame would need to be sorted by the same criteria. This function can be useful when order is important and non-consecutive duplicates convey useful information.

Comment From: cpcloud

if the interface is the same why not just add a keyword argument rather than another method?

Comment From: numpand

Keyword argument would work fine. I just meant the actual functionality.

Comment From: tvyomkesh

I think I can submit a PR for this one if it is not being looked into by anyone else.

Comment From: sinhrks

dupe with #10540