Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b98daf

Browse files
Add comments to example code and make small fixes
1 parent 865c4c1 commit 4b98daf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎hw/homework.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Create a Python function to read in data from a given path and calculate the
9090
average value of a given variable name.
9191

9292
```python
93-
# Example use
93+
# Example
9494
avg_chloride_results = calculate_avg_value(data, "chlorides")
9595
```
9696

@@ -108,6 +108,7 @@ one of the four variables we're interested in:
108108
- Alcohol
109109

110110
```python
111+
# Example
111112
wine_paths = ["white_wine_good.csv", ...]
112113
avg_values = find_average_wines(wine_paths)
113114
```
@@ -122,6 +123,7 @@ files. Save your dictionaries as JavaScript Object Notation (JSON) files.
122123
Use the built-in `json` Python package. Here's a hint on using it.
123124

124125
```python
126+
# Example on using the json package
125127
import json
126128

127129
your_dictionary = {"some_date" : "date"}
@@ -136,14 +138,13 @@ Save your four results into a directory `results`.
136138
**Challenge**
137139

138140
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`.
141142

142143
```shell
143144
# Run the entire analysis
144145
make all
145146

146-
# Remove all downloaded and intermediate files from data/, download/, results/
147+
# Remove all downloaded and created files from data/, download/, results/
147148
make clean
148149
```
149150

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /