Write a List of Dicts to jsonl file.
(filepath, rows)
| 38 | |
| 39 | |
| 40 | def write(filepath, rows): |
| 41 | """Write a List of Dicts to jsonl file.""" |
| 42 | with gfile.GFile(filepath, "w") as jsonl_file: |
| 43 | for row in rows: |
| 44 | line = "%s\n" % json.dumps(row) |
| 45 | jsonl_file.write(line) |
| 46 | print("Wrote %s lines to %s." % (len(rows), filepath)) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…