📜  列中的熊猫搜索字符串 - Python 代码示例

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

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

      col
1  foobar