Hot answers tagged

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 ...
user2856's user avatar
  • 59.8k
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 ...
Taras's user avatar
  • 28.8k
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 ...
user2856's user avatar
  • 59.8k

Only top scored, non community-wiki answers of a minimum length are eligible