November 2017
Beginner to intermediate
204 pages
5h 23m
English
While working with a dataset, it is good practice to keep organized notes for your own reference. Within the ch1 project folder, make a new subfolder called notes. In the notes subfolder, make a new file called data_variables.txt.
I'm going to use Python's built-in pprint (Pretty Print) module in order to show the data variables a bit more cleanly. The documentation for the pprint module is available at https://docs.Python.org/3.6/library/pprint.html.
The following continuation of process_data.py the first data entry is printed using the pprint module with a format that is easily readable:
...# print(scf_data["issues"][0])pp = pprint.PrettyPrinter(indent=4)print("first data entry:")pp.pprint(scf_data["issues"][0]) ...Read now
Unlock full access