In [69]:
df.apply(lambda x: x.str.contains('|'.join(column_filters[x.name]), case=False))
Out[69]:
COLUMN_1 COLUMN_2
0 True True
1 True False
2 False True
3 False False
4 False False
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter