Created
January 27, 2020 14:28
-
-
Save fabsta/71bf2ec5cba50fedf7a0d5516e4f718a to your computer and use it in GitHub Desktop.
[pandas columns to dict] converts two columns to a dictionary #python #pandas
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
area_dict = dict(zip(lakes.area, lakes.count)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment