diff --git a/体测单位/北海炼化.ipynb b/体测单位/北海炼化.ipynb index 9c2345c..60c1f7c 100644 --- a/体测单位/北海炼化.ipynb +++ b/体测单位/北海炼化.ipynb @@ -650,7 +650,6 @@ "cell_type": "markdown", "id": "1ab2aa22-5cc2-4f53-a28d-b30b1ecab15f", "metadata": { - "jp-MarkdownHeadingCollapsed": true, "tags": [] }, "source": [ @@ -1107,15 +1106,15 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 104, "id": "0bafbf66-c909-413e-a9c1-c1a5f9c22953", "metadata": { "execution": { - "iopub.execute_input": "2023-11-06T02:45:26.997902Z", - "iopub.status.busy": "2023-11-06T02:45:26.997635Z", - "iopub.status.idle": "2023-11-06T02:45:27.153980Z", - "shell.execute_reply": "2023-11-06T02:45:27.153516Z", - "shell.execute_reply.started": "2023-11-06T02:45:26.997879Z" + "iopub.execute_input": "2023-11-08T01:55:15.141433Z", + "iopub.status.busy": "2023-11-08T01:55:15.141150Z", + "iopub.status.idle": "2023-11-08T01:55:15.238893Z", + "shell.execute_reply": "2023-11-08T01:55:15.238339Z", + "shell.execute_reply.started": "2023-11-08T01:55:15.141408Z" }, "tags": [] }, @@ -1146,7 +1145,8 @@ " dict1['sex'] = sheet.cell(n, 3).value\n", " dict1['unit'] = sheet.cell(n, 4).value\n", " dict1['birth'] = sheet.cell(n,5).value\n", - " dict1['phone'] = sheet.cell(n,6).value\n", + " if sheet.cell(n,6).value is not None:\n", + " dict1['phone'] = sheet.cell(n,6).value \n", " person[code] = dict1\n", "filename = 'data/北海炼化2023年.json'\n", "with open(filename, 'w') as fl:\n", @@ -1217,15 +1217,15 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 105, "id": "1aa45b35-7376-4c50-8275-79b090a6c758", "metadata": { "execution": { - "iopub.execute_input": "2023-11-06T11:49:54.423587Z", - "iopub.status.busy": "2023-11-06T11:49:54.423105Z", - "iopub.status.idle": "2023-11-06T11:49:54.446801Z", - "shell.execute_reply": "2023-11-06T11:49:54.446345Z", - "shell.execute_reply.started": "2023-11-06T11:49:54.423549Z" + "iopub.execute_input": "2023-11-08T01:55:24.418823Z", + "iopub.status.busy": "2023-11-08T01:55:24.418534Z", + "iopub.status.idle": "2023-11-08T01:55:24.459533Z", + "shell.execute_reply": "2023-11-08T01:55:24.458755Z", + "shell.execute_reply.started": "2023-11-08T01:55:24.418802Z" }, "tags": [] }, @@ -1234,8 +1234,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "88\n", - "88\n" + "217\n", + "217\n" ] } ], @@ -1258,7 +1258,7 @@ "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n", "\n", - "filename = 'data/places_result_20231106.csv'\n", + "filename = 'data/places_result_20231108.csv'\n", "with open(filename,'r',newline='') as csv_file:\n", " fl = csv.reader(csv_file,delimiter=',')\n", " header = next(fl) \n",