update the harry potter for morning lecture
[harrypotter-wikipedia-cdsw] / harrypotter_edit_trend.ipynb
index 13d3d1118e0d9c023374550ae81599aa97defe72..028ff863ccf5d95915a49dcc807ce01a44318504 100644 (file)
@@ -64,7 +64,7 @@
    "outputs": [],
    "source": [
     "# iterate through every day and print out data into the file\n",
-    "for day_string in edits_by_day.keys():\n",
+    "for day_string in edits_by_day:\n",
     "    print(\"\\t\".join([day_string, str(edits_by_day[day_string])]), file=output_file)\n",
     "\n",
     "output_file.close()"

Benjamin Mako Hill || Want to submit a patch?