📌  相关文章
📜  数据框列包含字符串 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:10.377000             🧑  作者: Mango

代码示例2
# find rows in `df1` which contain "foo" followed by something
df1[df1['col'].str.contains(r'foo(?!$)')]

      col
1  foobar