I'm running an api request on google places and am running into issues with a keyerror 0. I'm not sure where to go from there. Here is my code:
cities = df1['name']
parameters = f"radius=5000&type=hotel"
key = g_key
url = "https://maps.googleapis.com/maps/api/nearbysearch/json?location="
for city in range(len(cities)):
rr = requests.get(url + str(cities[city]) + parameters + "&key=" + key)
responses.append(rr.json())