Returning multiples values with Series.apply()

Hi there!

I wrote a function that returns two values: latitute and longitud and I want to know how to get just one of them to use in a Series.apply method? Is there a way?

def find_coords(s):
    coords=re.findall('\(.+\)',s)
    lat=coords[0].split(",")[0].replace("(","")
    long=coords[0].split(',')[1].replace(')','')
    return (long)

data['hs_directory']['long']=data['hs_directory']['Location 1'].apply(find_coords**[0]**)

It’s not a terribly elegant way but you could use a lambda function to do it:

data['hs_directory']['long']=data['hs_directory']['Location 1'].apply(lambda x: find_coords(x)[0])