i'm new to programming and i'm trying to remove duplicates from list in python. However i'm unable to perform it using set(). List contains IP address and date following is my code and list
l = [['10.136.161.80', '2015-08-29'], ['10.136.161.80', '2015-08-29'], ['10.136.161.80', '2015-08-29'], ['10.136.161.80', '2015-08-29'], ['10.136.161.80', '2015-08-29'], ['10.136.161.80', '2015-08-29'],['10.136.161.235', '2016-03-12'], ['10.136.161.235', '2015-05-02'], ['10.136.161.93', '2016-03-12'], ['10.136.161.93', '2016-03-12'], ['10.136.161.93', '2015-04-25'], ['10.136.161.93', '2015-04-25'], ['10.136.161.93', '2016-03-12'], ['10.136.161.93', '2015-04-25'], ['10.136.161.93', '2015-04-25'], ['10.136.161.93', '2015-11-28'], ['10.136.161.93', '2015-11-28'], ['10.136.161.80', '2015-08-29'], ['10.136.161.112', '2015-04-25'], ['10.136.161.231', '2015-04-25']]
fl = set(l)
print fl
I get the following error:
Traceback (most recent call last):
File "C:/Users/syeam02.TANT-A01/PycharmProjects/security/cleandata.py", line 18, in <module>
fl = set(array)
TypeError: unhashable type: 'list'
Thanks in advance.