pandas replace for every row code example
Example 1: .replace pandas in for loop
df_media_input['MediaChannel'].replace(replacements, inplace=True)
Example 2: pandas change every row to df
for i, row in df.iterrows():
ifor_val = something
if <condition>:
ifor_val = something_else
df.at[i,'ifor'] = ifor_val