Flashcards
JSON, CSV, dates and timezones, regular expressions, itertools, statistics, pathlib, logging, reproducibility, packaging and file formats for everyday data scripts.
What does this print?
import json s = '{"name": "Ada", "tags": ["x", "y"], "n": null}' d = json.loads(s) print(d["tags"][1], d["n"]) print(json.dumps({"b": [1, 2], "a": 1}, sort_keys=True))
Tap to flip
y None {"a": 1, "b": [1, 2]}
Tap to see the front