I have a list of all cities US (150k+)in a pandas series like
import pandas as pd
master_city = pd.Series(['Lake Ketchum', 'Arletta', 'Glenoma', ..., 'Curlew'])
I have another series that contains a list of addressees like:
addresses = pd.series(['Headquarters 1120 N Street Lake Ketchum 916-654-5266', 'District 1 1656 Union Street Glenoma 707-445-6600', '1657 Riverside Drive Redding, CA 96001'])
I want to see if each address in addresses series contains a exact match of any of the cities in master city series. This is to validate city name is correct in all address. In this case address 1, 2 should match as it contains exact match for Lake Ketchum and Glenoma.
Can this be done with any series string method in a vectorised way ?