Skip to content

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

@abrathore09

Description

@abrathore09

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions