I have a dataframe like the one below. I would like to find all columns in the dataframe that contain a string ‘abc’ and return a list of those fields like the example below. If I was looking for the rows I would use isin, but I'm not sure how to get the columns. Any tips are greatly appreciated.
Example:
Print df
Field1 Field2 Field3
f_abc 23 dog
Df3 bb ju
Return
Field1