Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pandas show column with regular expression

# Get countries starting with letter P
S=pd.Series(['Finland','Colombia','Florida','Japan','Puerto Rico','Russia','france'])
S[S.str.match(r'(^P.*)')==True]
Source by kanoki.org #
 
PREVIOUS NEXT
Tagged: #pandas #show #column #regular #expression
ADD COMMENT
Topic
Name
7+2 =