df_media_input['MediaChannel'].replace(replacements, inplace=True)
replacements = { "Direct Mail": "DM", "DR TV": "DRTV", # and so on... } df_media_input['MediaChannel'].replace(replacements, inplace=True)