diff --git a/Data/test.csv b/Data/test.csv new file mode 100644 index 0000000..7c8d315 --- /dev/null +++ b/Data/test.csv @@ -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 diff --git a/Data/test_marked.csv b/Data/test_marked.csv new file mode 100644 index 0000000..86dfd82 --- /dev/null +++ b/Data/test_marked.csv @@ -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* diff --git a/tutorials/sorting_csvs.ipynb b/tutorials/sorting_csvs.ipynb index 9aaf2f2..04e99ab 100644 --- a/tutorials/sorting_csvs.ipynb +++ b/tutorials/sorting_csvs.ipynb @@ -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",