I'm having a problem with huge data set and I'm looking for removing same indexed item from 2 lists.
Let me describe an example.
Imagine a Google search - list of 12 URLs from the page. First is an advertisement and the last one too, second and 7th is a picture link. Now I want only the organic links.
Types can be randomly positioned in the list. I was checking the array_remove which is pretty nice but it can only remove specific item from 1 list and I'm not advanced enough to figure out how to do it simultaneously for 2 lists. Sadly dataset is really big and I'm afraid that posexplode in not an option for me here.
Keep in mind it's a column of lists, not a column of individual items.
I'm looking for something like
if "adlink" or "picture" in typelist:
remove it from typelist and remove same indexed item from urls list
urls | type
-----------------
[url1, | [adlink,
url2, | picture,
url3, | link,
url4, | link,
url5, | link,
url6, | link,
url7, | picture,
url8, | link,
url9, | link,
url10, | link,
url11, | link,
url12] | adlink]
Desired output:
urls | type
-----------------
[url3, | [link,
url4, | link,
url5, | link,
url6, | link,
url8, | link,
url9, | link,
url10, | link,
url11] | link]