datafiles

This commit is contained in:
rasbt 2014-05-13 23:44:33 -04:00
parent cb155d0311
commit e43265cb57
3 changed files with 19 additions and 8 deletions

7
Data/test.csv Normal file
View File

@ -0,0 +1,7 @@
name,column1,column2,column3
abc,1.1,4.2,1.2
def,2.1,1.4,5.2
ghi,1.5,1.2,2.1
jkl,1.8,1.1,4.2
mno,9.4,6.6,6.2
pqr,1.4,8.3,8.4
1 name column1 column2 column3
2 abc 1.1 4.2 1.2
3 def 2.1 1.4 5.2
4 ghi 1.5 1.2 2.1
5 jkl 1.8 1.1 4.2
6 mno 9.4 6.6 6.2
7 pqr 1.4 8.3 8.4

7
Data/test_marked.csv Normal file
View File

@ -0,0 +1,7 @@
name,column1,column2,column3
abc,1.1^,4.2,1.2^
def,2.1,1.4,5.2
ghi,1.5,1.2,2.1
jkl,1.8,1.1^,4.2
mno,9.4*,6.6,6.2
pqr,1.4,8.3*,8.4*
1 name column1 column2 column3
2 abc 1.1^ 4.2 1.2^
3 def 2.1 1.4 5.2
4 ghi 1.5 1.2 2.1
5 jkl 1.8 1.1^ 4.2
6 mno 9.4* 6.6 6.2
7 pqr 1.4 8.3* 8.4*

View File

@ -1,7 +1,7 @@
{ {
"metadata": { "metadata": {
"name": "", "name": "",
"signature": "sha256:c498612c4d414160d8e015bc6858051328e51cd00e56b3215dca53652ee7c936" "signature": "sha256:683cfd7e6b5fd1dca9cd2028b294ec8ae44a175b613eb3c037d365a28957a987"
}, },
"nbformat": 3, "nbformat": 3,
"nbformat_minor": 0, "nbformat_minor": 0,
@ -133,12 +133,9 @@
" in the sublist represents 1 cell in the table.\n", " in the sublist represents 1 cell in the table.\n",
" \n", " \n",
" \"\"\"\n", " \"\"\"\n",
" csv_content = []\n",
" with open(csv_file, 'r') as csv_con:\n", " with open(csv_file, 'r') as csv_con:\n",
" reader = csv.reader(csv_con, delimiter=delimiter)\n", " reader = csv.reader(csv_con, delimiter=delimiter)\n",
" for row in reader:\n", " return list(reader)"
" csv_content.append(row)\n",
" return csv_content"
], ],
"language": "python", "language": "python",
"metadata": {}, "metadata": {},
@ -169,7 +166,7 @@
] ]
} }
], ],
"prompt_number": 4 "prompt_number": 3
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
@ -215,7 +212,7 @@
"language": "python", "language": "python",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"prompt_number": 2 "prompt_number": 4
}, },
{ {
"cell_type": "code", "cell_type": "code",
@ -248,7 +245,7 @@
] ]
} }
], ],
"prompt_number": 3 "prompt_number": 5
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",