3
votes
ValueError: Columns must be same length as key
pandas is expecting two values (columns) to be returned as you specified two keys ['Latitude', 'Longitude'].
However, when there's an exception, e.g. no geocoding result, you only return a single ...
2
votes
"ValueError: Point coordinates must be finite." when reverse geocoding in DataFrame using GeoPy
Indeed, as was pointed by @user2856, there is one record that voids the error. This record possesses Nan values in "LATITUDE" and "LONGITUDE" attributes.
To see these values apply ...
1
vote
"ValueError: Point coordinates must be finite." when reverse geocoding in DataFrame using GeoPy
Row 49 in your spreadsheet is invalid
RJ9 #N/A #N/A
Which is element/index 47 in your dataframe:
tabelasitesrem.iloc[47]
Out[4]:
UF SIGLA RJ9
LATITUDE NaN
LONGITUDE NaN
Just drop ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
geopy × 46python × 34
nominatim × 13
geocoding × 9
reverse-geocoding × 8
pandas × 7
distance × 6
geopandas × 6
shapely × 6
vincenty-formulae × 5
postgis × 3
coordinate-system × 3
haversine × 3
fiona × 2
data-frame × 2
geodesic × 2
great-circle × 2
qgis × 1
pyqgis × 1
geoserver × 1
shapefile × 1
openstreetmap × 1
coordinates × 1
convert × 1
latitude-longitude × 1