Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

panda search strings in column

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

      col
1  foobar
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #panda #search #strings #column
ADD COMMENT
Topic
Name
6+8 =