How could I remove duplicates two dimension list without changing the order?
list_j = [[100,2,3,3], [4,98,99,98], [5,99,98,4], [5,99,98,5], [100,99,98,100,100,6]]
list_pre = [list(set(i)) for i in list_j]
print(list_pre)
[[2, 3, 100], [98, 99, 4], [98, 99, 4, 5], [98, 99, 5], [98, 99, 100, 6]]
As you can see it changed the order. What I want is [[100,2,3,],...]
Desired output [[100,2,3,], [4,98,99], [5,99,98,4], [5,99,98], [100,99,98,6]]