df is an DataFrame of 1.2 Million rows
valid is an Array of 16000 valid values to filter for
I tried using a list comprehension for the filter, but it is extremely slow, because of searching through both arrays.
df[[i in valid for i in df[:match],:]
What is a faster way to do this? Using where? The 'filter' function?