Last active
February 11, 2022 10:22
-
-
Save isotopp/8af81d72126c3353f506a36b24266bd5 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
#! /usr/bin/python3 | |
import json | |
import pprint | |
count=0 | |
with open("data.jsonl", "r") as f: | |
while (line := f.readline()) and count<3: | |
d = json.loads(line) | |
pprint.pprint(d) | |
print() | |
count += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment