def no_strings(df): for index,row in df.iterrows(): if df[index] in result_map.keys(): df[index].replace(result_map) #We will need a mapping of