Sort DAT has a “Unique Output” par that will eliminate duplicates. Probably your simplest option.
To do it with Python, you could use a Script DAT to automatically update when your table changes or a Dat Execute to react to changes in your table and adjust it accordingly.
Sort DAT’s unique output will remove all duplicates - to only remove successive duplicates, here a Script DAT example. remove_successive_duplicates.tox (758 Bytes)