The following code finds any strings for column B. Is it possible to loop over multiple columns of a dataframe using the code below?
import pandas as pd df[df