Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pandas show column with regular expression

S=pd.Series(['Finland','Colombia','Florida','Japan','Puerto Rico','Russia','france'])
[itm[0] for itm in S.str.findall('^[Ff].*') if len(itm)>0]
Source by kanoki.org #
 
PREVIOUS NEXT
Tagged: #pandas #show #column #regular #expression
ADD COMMENT
Topic
Name
2+9 =