|
29 | 29 | },
|
30 | 30 | {
|
31 | 31 | "cell_type": "code",
|
32 |
| - "execution_count": null, |
| 32 | + "execution_count": 1, |
33 | 33 | "id": "5287cd41-7680-4ffc-be4e-cbf1098b7a86",
|
34 | 34 | "metadata": {
|
35 | 35 | "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" |
38 | 41 | },
|
39 | 42 | "tags": []
|
40 | 43 | },
|
41 | 44 | "outputs": [
|
42 | 45 | {
|
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" |
56 | 51 | ]
|
57 | 52 | }
|
58 | 53 | ],
|
|
138 | 133 | " lines.append(headers)\n",
|
139 | 134 | " \n",
|
140 | 135 | " 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", |
142 | 137 | " \n",
|
143 | 138 | " \n",
|
144 | 139 | "create_db('./mimic-iv-1.0', 'mimic.db')\n",
|
|
158 | 153 | "execution_count": null,
|
159 | 154 | "id": "55291a90-d156-4ae5-8e3c-ea3e516c1019",
|
160 | 155 | "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 | + }, |
161 | 161 | "tags": []
|
162 | 162 | },
|
163 | 163 | "outputs": [],
|
|
0 commit comments