From 4050e887938ec47247780a23d227be26318bc049 Mon Sep 17 00:00:00 2001 From: Santosh Kumar Date: Tue, 17 Nov 2015 12:09:16 +0530 Subject: [PATCH 1/2] Rephrase line to be more clear ALL CAPS variable are constants that we don't change the value of. --- website/_containers/dataviz/2013-01-04-part-1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/_containers/dataviz/2013-01-04-part-1.md b/website/_containers/dataviz/2013-01-04-part-1.md index f51a2628..0ac81cf9 100644 --- a/website/_containers/dataviz/2013-01-04-part-1.md +++ b/website/_containers/dataviz/2013-01-04-part-1.md @@ -42,7 +42,7 @@ In order to read a CSV/Excel file, we have to import the `csv` module from Pytho import csv ``` -`MY_FILE` is defining a global - notice how it‘s all caps, a convention for variables we won't be changing. Included in this repo is a sample file to which this variable is assigned. +`MY_FILE` is defining a constant - notice how it‘s all caps, a convention for variables we won't be changing the value of. Included in this repo is a sample file to which this variable is assigned. ```python MY_FILE = "../data/sample_sfpd_incident_all.csv" From 9650cce4fdbcb01f51de8ea09e488d810f48c774 Mon Sep 17 00:00:00 2001 From: Santosh Kumar Date: Tue, 17 Nov 2015 15:32:21 +0530 Subject: [PATCH 2/2] fixes typo in graph.py it's day_tuple not day_list --- dataviz/tutorial_source/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataviz/tutorial_source/graph.py b/dataviz/tutorial_source/graph.py index aca9908c..98bc75b4 100755 --- a/dataviz/tutorial_source/graph.py +++ b/dataviz/tutorial_source/graph.py @@ -66,7 +66,7 @@ def visualize_days(): # Assign the data to a plot plt.plot(data_list) - # Assign labels to the plot from day_list + # Assign labels to the plot from day_tuple plt.xticks(range(len(day_tuple)), day_tuple) # Save the graph!