I have a dataframe containing a variety of phone numbers that I want to extract the time zone for. I am apply to loop over the series in the dataframe as follows And this works just fine as long as the phone number in x.external_number doesn’t contain a single invalid phone number; however, if one single invalid phone number is