Last active
March 22, 2021 18:37
-
-
Save jens-andersson-2-wcar/eefb5b3afa8e55bf2eff3e9d5db1f223 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!conda install -y h3-py | |
import h3 | |
hex_ids = dataset2001.apply(lambda row: h3.geo_to_h3(row.lat, row.long, resolution), axis = 1) | |
dataset2001 = dataset2001.assign(hex_id=hex_ids.values) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment