I want to find rows that contain a string, like so:
DF[DF.col.str.contains(\"foo\")]
However, this fails because some elements are NaN:
You can also patern :
DF[DF.col.str.contains(pat = '(foo)', regex = True) ]