how to get columns with string match in pandas code example
Example 1: get columns containing string
df2 = df.filter(regex='spike')
print(df2)
Example 2: python - find specific name in a df
i = df[df['Name']=='Will']
print(i)
df2 = df.filter(regex='spike')
print(df2)
i = df[df['Name']=='Will']
print(i)