mirror of
https://github.com/rasbt/python_reference.git
synced 2024-11-27 14:01:15 +00:00
datafiles
This commit is contained in:
parent
cb155d0311
commit
e43265cb57
7
Data/test.csv
Normal file
7
Data/test.csv
Normal 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
|
|
7
Data/test_marked.csv
Normal file
7
Data/test_marked.csv
Normal 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,7 +1,7 @@
|
|||
{
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"signature": "sha256:c498612c4d414160d8e015bc6858051328e51cd00e56b3215dca53652ee7c936"
|
||||
"signature": "sha256:683cfd7e6b5fd1dca9cd2028b294ec8ae44a175b613eb3c037d365a28957a987"
|
||||
},
|
||||
"nbformat": 3,
|
||||
"nbformat_minor": 0,
|
||||
|
@ -133,12 +133,9 @@
|
|||
" in the sublist represents 1 cell in the table.\n",
|
||||
" \n",
|
||||
" \"\"\"\n",
|
||||
" csv_content = []\n",
|
||||
" with open(csv_file, 'r') as csv_con:\n",
|
||||
" reader = csv.reader(csv_con, delimiter=delimiter)\n",
|
||||
" for row in reader:\n",
|
||||
" csv_content.append(row)\n",
|
||||
" return csv_content"
|
||||
" return list(reader)"
|
||||
],
|
||||
"language": "python",
|
||||
"metadata": {},
|
||||
|
@ -169,7 +166,7 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"prompt_number": 4
|
||||
"prompt_number": 3
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
|
@ -215,7 +212,7 @@
|
|||
"language": "python",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"prompt_number": 2
|
||||
"prompt_number": 4
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
|
@ -248,7 +245,7 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"prompt_number": 3
|
||||
"prompt_number": 5
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
|
|
Loading…
Reference in New Issue
Block a user