Skip to content

Commit a1df17f

Browse files
committed
Merge pull request #19 from swubb/master
cleaning up
2 parents 2b7fba1 + 0157753 commit a1df17f

15 files changed

+6
-5826
lines changed

.ipynb_checkpoints/Code-Encode sketch-checkpoint.ipynb

Lines changed: 0 additions & 514 deletions
This file was deleted.

Chapter 12 - CSV and plotting.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Chapter 13: CSV and plotting\n",
7+
"#Chapter 12 : CSV and plotting\n",
88
"\n",
99
"*Data Processing with Python, a course for Communication and Information Sciences*\n",
1010
"\n",
@@ -232,7 +232,7 @@
232232
"outputs": [],
233233
"source": [
234234
"import csv\n",
235-
"f=open(\"coffee.csv\")\n",
235+
"f=open(\"data/coffee.csv\")\n",
236236
"for row in csv.reader(f):\n",
237237
" print(row)"
238238
]
@@ -277,7 +277,7 @@
277277
"outputs": [],
278278
"source": [
279279
"import csv\n",
280-
"f = open(\"airports.csv\" , encoding='utf-8')\n",
280+
"f = open(\"data/airports.csv\" , encoding='utf-8')\n",
281281
"for row in csv.reader(f):\n",
282282
" print(row[1])"
283283
]
@@ -306,7 +306,7 @@
306306
"\n",
307307
"airport_counts={}\n",
308308
"\n",
309-
"f = open(\"airports.csv\" , encoding='utf-8')\n",
309+
"f = open(\"data/airports.csv\" , encoding='utf-8')\n",
310310
"for row in csv.reader(f):\n",
311311
" key = row[3]\n",
312312
" if key in airport_counts: \n",
@@ -357,7 +357,7 @@
357357
"source": [
358358
"latitudes = {}\n",
359359
"longitudes = {}\n",
360-
"f = open(\"airports.csv\", encoding='utf-8')\n",
360+
"f = open(\"data/airports.csv\", encoding='utf-8')\n",
361361
"for row in csv.reader(f):\n",
362362
" airport_id = row[0]\n",
363363
" latitudes[airport_id] = float(row[6])\n",
@@ -441,7 +441,7 @@
441441
"outputs": [],
442442
"source": [
443443
"distances = []\n",
444-
"f = open(\"routes.csv\")\n",
444+
"f = open(\"data/routes.csv\")\n",
445445
"for row in csv.reader(f):\n",
446446
" source_airport = row[3]\n",
447447
" dest_airport = row[5]\n",

Code-Encode sketch.ipynb

Lines changed: 0 additions & 527 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

freqdict.pkl

-36 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)