收到错误IndexError :(“列表索引超出范围”,发生在索引193')

时间:2018-12-07 15:11:10

标签: python pandas

latlon1_df = pd.read_csv("latlon1.csv")

from uszipcode import Zipcode
from uszipcode import SearchEngine
search = SearchEngine(simple_zipcode=True)

def dany(x):
    result = search.by_coordinates(x[0],x[1])
    return result[0].zipcode

df["zipcode"] = df.apply(dany, axis=1)

0 个答案:

没有答案