1S=pd.Series(['Finland','Colombia','Florida','Japan','Puerto Rico','Russia','france'])
2S.str.contains('^F.*')
3
1import numpy as np
2df['first_five_Letter']=df['Country (region)'].str.extract(r'(^\w{5})')
3df.head()
4
1S=pd.Series(['Finland','Colombia','Florida','Japan','Puerto Rico','Russia','france'])
2[itm[0] for itm in S.str.findall('^[Ff].*') if len(itm)>0]
3
1# Get countries starting with letter P
2S=pd.Series(['Finland','Colombia','Florida','Japan','Puerto Rico','Russia','france'])
3S[S.str.match(r'(^P.*)')==True]
4