How to use geopy to obtain the zip code from coordinates?
问题 So below is the code I have been using. I'm a bit of a newb. I've been testing with just the head of the data because of the quota for using the API. Below is a snapshot of the dataframe: latitude longitude 0 -73.99107 40.730054 1 -74.000193 40.718803 2 -73.983849 40.761728 3 -73.97499915 40.68086214 4 -73.89488591 40.66471445 This is where I am getting tripped up. train['latlng'] = train.apply(lambda row: '{},{}'.format(row['latitude'], row['longitude']), axis=1) train['geocode_data'] =