Skip to content

Instantly share code, notes, and snippets.

@jens-andersson-2-wcar
Created March 22, 2021 17:40
Show Gist options
  • Save jens-andersson-2-wcar/84c3e25b30cf6e3e2fbe65debf4b7796 to your computer and use it in GitHub Desktop.
Save jens-andersson-2-wcar/84c3e25b30cf6e3e2fbe65debf4b7796 to your computer and use it in GitHub Desktop.
dataset2001byhexid = dataset2001.groupby("hex_id", as_index=False).agg({"pop_2001": "sum"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment