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

A bug is found in "data.py" #2

Open
daehyun93 opened this issue Oct 19, 2015 · 0 comments
Open

A bug is found in "data.py" #2

daehyun93 opened this issue Oct 19, 2015 · 0 comments

Comments

@daehyun93
Copy link

There is a bug line 79 in data.py. When one region (upper level geography) have correspondence to only one geographical unit (lower level geography), "self.geo["region_to_geo"].loc[region_id, geo_name].copy().tolist()" does return a value of not "list" type but "long" type. Hence, I would suggest you to use the following code to get rid of this bug.

geoids = self.geo["region_to_geo"].loc[region_id, geo_name].copy().tolist()
if isinstance(geoids, list):
    return (geoids)
else:
    return ([geoids])
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

1 participant