I would like to delete all the elements from list of lists that appear more than once and am looking for a smoother solution than this: Removing Duplicate Elements from List of Lists in Prolog
I am not trying to remove duplicated lists inside of the parent list like here: How to remove duplicates from nested lists
Consider this Int:
list = [
[1, 3, 4, 5, 77],
[1, 5, 10, 3, 4],
[1, 5, 100, 3, 4],
[1, 3, 4, 5, 89],
[1, 3, 5, 47, 48]]
Desired output:
new_list= [
[77],
[10],
[100],
[89],
[47, 48]]
Thanks. I am going to use this in Pandas: the new_list will serve as a new column with unique values on each row compare to the original column.