Newbie question here...
I have a list of lists and I need to filter out entire elements (rows) if one occurrence of a partial string in a row exists.
E.g.
df = [['frog','womble','badger'], ['frog','ant','owl'], ['frog','badger','dataERRORdata']]
I need to search on %ERROR% (because the surrounding text is large and changeable) and for that to remove the entire element, leaving;
[['frog','womble','badger'], ['frog','ant','owl']]
I've tried a few list comprehensive/generator type loops but can't get it work. Would be quite useful to have an example just based on the above so I can tweak it to the specific case I have.
Feels like this is simple and I'm just missing something easy
Thanks!
inoperator