I have a gps points in one column in df , i convert points to direction with this code:
DF_DIRECCION3['Direccion_py']=DF_DIRECCION3['COORDENADAS'].apply(lambda x:geolocator.reverse(x))
The results are a dirección like this:
67, Calle Iztaccihuatl, Álvaro Obregón, Ciudad de México, 01030, México
And i want to separete , so i use split:
dato=DF_DIRECCION2["Direccion_py"].str.split(",", expand = True)
But the problem is that some directions dont have a number :
So im thinking that if the sept is "," and i know how much "," haqve i could use a where to fill the field, but i dont know how could count ",".
I explain all de code cause if u have other solution i could do it
Thanks!