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]**)