I have a list of assorted values which I need to replace with a single value (Drive-by). I did my research but the closest post I could find is the below attached link which is not using Pandas. What is the most viable way to get this accomplished?
Python replace multiple strings
fourth = pd.read_csv('C:/infocentertracker.csv')
fourth = fourth.rename(columns={'Phone Number: ': 'Phone Number:'})
fourth['Source:'] = fourth['Source:'].replace('......', 'Drive-by')
fourth.to_csv(.............)
Drive By
Drive-By
Drive-by; Return Visitor
Drive/LTX.com/Internes Srch Replace all with Drive-by
Driving By/Lantana Website
Drive by
Driving By/Return Visitor
Drive by/Resident Referral
Driving by
Drive- by
Driving by/LTX Website
Driving By
Driving by/Return Visitor
Drive By/Return Visitor
Drive By/LTX Website