Skip to content

Commit d87102c

Browse files
committed
fix bug (no dot)
1 parent cb3ede7 commit d87102c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

csv2sqlite-streaming.ipynb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,25 @@
2929
},
3030
{
3131
"cell_type": "code",
32-
"execution_count": null,
32+
"execution_count": 1,
3333
"id": "5287cd41-7680-4ffc-be4e-cbf1098b7a86",
3434
"metadata": {
3535
"execution": {
36-
"iopub.execute_input": "2022-04-01T22:54:59.484432Z",
37-
"iopub.status.busy": "2022-04-01T22:54:59.483441Z"
36+
"iopub.execute_input": "2022-04-01T22:57:50.828795Z",
37+
"iopub.status.busy": "2022-04-01T22:57:50.828795Z",
38+
"iopub.status.idle": "2022-04-01T22:57:50.843795Z",
39+
"shell.execute_reply": "2022-04-01T22:57:50.843795Z",
40+
"shell.execute_reply.started": "2022-04-01T22:57:50.828795Z"
3841
},
3942
"tags": []
4043
},
4144
"outputs": [
4245
{
43-
"name": "stdout",
44-
"output_type": "stream",
45-
"text": [
46-
"processing mimic-iv-1.0\\admissions.csv\n",
47-
"processing mimic-iv-1.0\\chartevents.csv\n"
48-
]
49-
},
50-
{
51-
"name": "stderr",
52-
"output_type": "stream",
53-
"text": [
54-
"C:\\Users\\jeev\\Anaconda3\\lib\\site-packages\\IPython\\core\\interactiveshell.py:3357: DtypeWarning: Columns (6,8) have mixed types.Specify dtype option on import or set low_memory=False.\n",
55-
" if (await self.run_code(code, result, async_=asy)):\n"
46+
"ename": "SyntaxError",
47+
"evalue": "invalid syntax (<ipython-input-1-391b4b0b0e5d>, line 82)",
48+
"output_type": "error",
49+
"traceback": [
50+
"\u001b[1;36m File \u001b[1;32m\"<ipython-input-1-391b4b0b0e5d>\"\u001b[1;36m, line \u001b[1;32m82\u001b[0m\n\u001b[1;33m to_sql(file_path.stem, conn, if_exists='append', index=False)\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n"
5651
]
5752
}
5853
],
@@ -138,7 +133,7 @@
138133
" lines.append(headers)\n",
139134
" \n",
140135
" pd.read_csv(StringIO(''.join(lines)), low_memory=False) \\\n",
141-
" to_sql(file_path.stem, conn, if_exists='append', index=False)\n",
136+
" .to_sql(file_path.stem, conn, if_exists='append', index=False)\n",
142137
" \n",
143138
" \n",
144139
"create_db('./mimic-iv-1.0', 'mimic.db')\n",
@@ -158,6 +153,11 @@
158153
"execution_count": null,
159154
"id": "55291a90-d156-4ae5-8e3c-ea3e516c1019",
160155
"metadata": {
156+
"execution": {
157+
"iopub.status.busy": "2022-04-01T22:57:50.844796Z",
158+
"iopub.status.idle": "2022-04-01T22:57:50.844796Z",
159+
"shell.execute_reply": "2022-04-01T22:57:50.844796Z"
160+
},
161161
"tags": []
162162
},
163163
"outputs": [],

0 commit comments

Comments
 (0)