I checked this comparing lists, Only one answer is relative to what I am trying to do. I have to lists with some similiar elements, I want to get the non -matching elements.
len(h) = 1973182 #h[0] = 'B00006J8F4F2', y[0] = 'B0075Y2X2GO6'
len(y) = 656890
I am doing
new_list = [i for i in h if i not in y]
,however this takes about 13 minutes to do, Is there a faster way of doing this?
In refer to "duplicate" question, Finding elements not in a list, I use the same code, What I am looking for is a faster way of doing it.