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! 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"