python dataframe get int elements from string column using regex code example
Example 1: 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]
Example 2: pandas show column with regular expression
df[df['Country (region)'].str.count('^[pP].*')>0]