Error while trying to append data to columns in Python
问题 I am trying to reverse geocode data and for that I have below query import overpy import pandas as pd import numpy as np df = pd.read_csv("/home/runner/sample.csv") df.sort_values(by=['cvdt35_timestamp_s'],inplace=True) api= overpy.Overpass() box = 0.0005 queries = [] results = [] df['Name']='' df['Highway'] ='' with open("sample.csv") as f: for row in df.index: query = 'way('+str(df.gps_lat_dd.iloc[row]-box)+','+str(df.gps_lon_dd.iloc[row]-box)+','+str(df.gps_lat_dd.iloc[row]+box)+','+str(df