censusbatchgeocoder icon indicating copy to clipboard operation
censusbatchgeocoder copied to clipboard

ValueError: could not convert string to float: 'No_Match'

Open abrathore09 opened this issue 7 years ago • 1 comments

alueError Traceback (most recent call last) in () 8 data_send=x_data[x-100:x] 9 data_send.to_csv('data1.csv',index=False) ---> 10 results = censusbatchgeocoder.geocode("data1.csv") 11 print("{} times".format(i)) 12 temp_data=pd.DataFrame(results)[["id","address","city","longitude","latitude"]]

C:\ProgramData\Anaconda3\Lib\site-packages\censusbatchgeocoder_init_.py in geocode(string_or_stream, **kwargs) 224 """ 225 obj = Geocoder(**kwargs) --> 226 return obj.geocode(string_or_stream)

C:\ProgramData\Anaconda3\Lib\site-packages\censusbatchgeocoder_init_.py in geocode(self, string_or_stream) 205 # Parse the latitude and longitude out of the coordinates response 206 if response_row['coordinates']: --> 207 response_row['longitude'], response_row['latitude'] = map(float, response_row['coordinates'].split(",")) 208 else: 209 response_row['longitude'], response_row['latitude'] = None, None

ValueError: could not convert string to float: 'No_Match'

abrathore09 avatar Jun 26 '18 22:06 abrathore09

Hi @abrathore09 Is this issue has been resolved? Because am also facing the same issue. If it resolved please provide me the solution

Thanks

ankur47 avatar Sep 21 '21 15:09 ankur47