find column names dataframe regex code example
Example 1: pandas show column with regular expression
S=pd.Series(['Finland','Colombia','Florida','Japan','Puerto Rico','Russia','france'])
S.str.contains('^F.*')
Example 2: pandas show column with regular expression
df[df['Country (region)'].str.count('^[pP].*')>0]