Logistical overview
In this chapter, I will demonstrate four projects, using four programs respectively. These are as follows:
csv_intro.py
: An introduction to Python's built-incsv
modulepandas_intro.py
: An introduction to thepandas
modulejson_to_csv.py
: An exercise in working with CSV dataxml_to_json.py
: An introduction to thexml.etree.ElementTree
module and an exercise in working with XML data
The finished product for each of these projects can be obtained from the code folder in the external resources. All of the external resources are available in one folder at the following link: https://goo.gl/8S58ra.
File system setup
To follow along with the exercises, you should create a project folder called ch4
to contain all of the code and data. There are a number of different programs, input datasets, and output datasets involved in the projects and exercises in this chapter. To keep things organized, I've created an additional folder to contain the code for the chapter. I've also fragmented...