Ignoring NaNs with str.contains

后端 未结 6 521
花落未央
花落未央 2020-11-27 11:23

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:

6条回答
提交回复
热议问题