Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas str contains only true

my_series[my_series.str.contains("hello")]

0    hello world
1          hello
dtype: object
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #str #true
ADD COMMENT
Topic
Name
4+3 =