-2

I can't delete duplicated rows in a list with python, what's is the problem ? how can I solve this ? thanks in advance.

enter image description here

Sofia
  • 29
  • 5
  • 4
    Use `np.unique()` with `axis` param. – Divakar Oct 31 '18 at 08:44
  • 4
    Possible duplicate of [Find unique rows in numpy.array](https://stackoverflow.com/questions/16970982/find-unique-rows-in-numpy-array) – Qiu Oct 31 '18 at 08:48
  • Please always post code, data, and error messages as text directly here on SO, not as a picture. – Mr. T Oct 31 '18 at 09:09

1 Answers1

0

if you want to delete the same element in list, you can do it this way :

for i in reversed(range(len(list))):
    if l[i] in l[0:i]:
        l.pop(i)
me luobote
  • 21
  • 3