I'm new to python and i'm not sure where to start with wrangling my dataset, i have customer e-commerce sales data and need one of the columns to contain the county part of the address. The county is in most cases already in the Address4 column but some of the customers have filled in their county in Address1, Address2 or Address3 instead.
I have an array of all 32 counties so i think i need to check each column Address1, Address2,Address3,Address4 to see if they contain one of the counties in the array and if found, write the found county in Address4. Hope this makes sense.
in this case, i would need to find longford from Address3 and write over Co Longford and find Donegal in Address4 and write over Donegal in Address 4 and the same for all rows,