Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: list index out of range when using rg.search() #43

Open
MohamedElrefai opened this issue Nov 15, 2018 · 2 comments
Open

IndexError: list index out of range when using rg.search() #43

MohamedElrefai opened this issue Nov 15, 2018 · 2 comments

Comments

@MohamedElrefai
Copy link

I have tried to use a list of tuples for coordinates when i use a list with more than 55k example, I am facing this problem then I try to take the rest of the list but only takes a thousand then I am facing the same issue.

@iPAS
Copy link

iPAS commented Nov 29, 2018

I got the same problem. But at the end, I found some of locations be missing or negative.

@mhlearn
Copy link

mhlearn commented Feb 19, 2019

may consider to handle missing value, return with "none" on location, also returning exatly the same lat and lon values as read from source values. this is useful when merging back the result to original dataframe that has other columns than lat and lon.
found solution append it back to original df, if someone need it.
df["lat"], df["lon"],
df["name"], df["admin1"],
df["admin2"], df["cc"] = pd.DataFrame(reverse_geocoder(search(coordinate_in_tuple)).T.to_numpy()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants