@@ -90,7 +90,7 @@ Create a Python function to read in data from a given path and calculate the
90
90
average value of a given variable name.
91
91
92
92
``` python
93
- # Example use
93
+ # Example
94
94
avg_chloride_results = calculate_avg_value(data, " chlorides" )
95
95
```
96
96
@@ -108,6 +108,7 @@ one of the four variables we're interested in:
108
108
- Alcohol
109
109
110
110
``` python
111
+ # Example
111
112
wine_paths = [" white_wine_good.csv" , ... ]
112
113
avg_values = find_average_wines(wine_paths)
113
114
```
@@ -122,6 +123,7 @@ files. Save your dictionaries as JavaScript Object Notation (JSON) files.
122
123
Use the built-in ` json ` Python package. Here's a hint on using it.
123
124
124
125
``` python
126
+ # Example on using the json package
125
127
import json
126
128
127
129
your_dictionary = {" some_date" : " date" }
@@ -136,14 +138,13 @@ Save your four results into a directory `results`.
136
138
** Challenge**
137
139
138
140
You want to automate everything as much as possible, so you want to create a
139
- Makefile to make everything.
140
-
141
+ Makefile to make everything. There are two Make rule: ` all ` and ` clean ` .
141
142
142
143
``` shell
143
144
# Run the entire analysis
144
145
make all
145
146
146
- # Remove all downloaded and intermediate files from data/, download/, results/
147
+ # Remove all downloaded and created files from data/, download/, results/
147
148
make clean
148
149
```
149
150
0 commit comments