How to remove successive duplicate rows from table?

Hi there,

I’m looking for a way to dynamically filter out successive duplicate rows inside ‘table 1’.

In this example, I would like to get 0, 2, 0, 1 (instead of 0, 2, 2, 2, 2, 0, 0, 0, 1, 1, 1, etc).

I can’t seem to find a way to do this with built in nodes so I suppose this would need to be done in Python…

Many thanks,

Tom

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)

Ah, yes! Apparently @nettoyeur reads the question thoroughly before answering! Thanks for that, Idz :slight_smile: and apologies for unhelpful answer @tguil001

No worries @Ivan and thanks a lot to @nettoyeur, super helpful!