Created
June 15, 2018 08:20
-
-
Save ettorerizza/83f975daee85a2686f3c5cd79d6a5eff to your computer and use it in GitHub Desktop.
aperçu d'un gros dictionnaire Python
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
| import itertools | |
| def glance(d): | |
| """aperçu d'un échantillon non ordonné d'un dictionnaire""" | |
| return dict(itertools.islice(d.items(), 3)) | |
| glance(json_file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment