df loop on row and replace code example Example: .replace pandas in for loop df_media_input['MediaChannel'].replace(replacements, inplace=True)