Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Can only use .str accessor with string values!

data.loc['foo'].str.contains("bar")
# turns into
data.loc['foo'].astype(str).str.contains("bar")
 
PREVIOUS NEXT
Tagged: #Can #accessor #string
ADD COMMENT
Topic
Name
4+6 =