diff --git a/体测单位/燕山石化.ipynb b/体测单位/燕山石化.ipynb index 084d4eb..299b0b1 100644 --- a/体测单位/燕山石化.ipynb +++ b/体测单位/燕山石化.ipynb @@ -442,27 +442,12 @@ }, { "cell_type": "code", - "execution_count": 73, + "execution_count": null, "id": "641863ef-324f-4c33-a0a9-699031afb6f1", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-26T14:47:09.071920Z", - "iopub.status.busy": "2023-05-26T14:47:09.071521Z", - "iopub.status.idle": "2023-05-26T14:47:09.257365Z", - "shell.execute_reply": "2023-05-26T14:47:09.256643Z", - "shell.execute_reply.started": "2023-05-26T14:47:09.071892Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[]\n" - ] - } - ], + "outputs": [], "source": [ "import json\n", "import openpyxl\n", @@ -809,6 +794,119 @@ "print('gbs:', gbs)" ] }, + { + "cell_type": "markdown", + "id": "a7a00f31-9bf8-4fcd-9c6b-23707c4a5e00", + "metadata": {}, + "source": [ + "## 报告按部门分类更名" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "7e495c73-5116-4a3f-a8e1-65f7cc6ec28e", + "metadata": { + "tags": [] + }, + "outputs": [], + "source": [ + "import os,sys,shutil\n", + "import json\n", + "import math\n", + "import glob\n", + "from pathlib import Path\n", + "\n", + "fi_path = 'file/20230530'\n", + "old = []\n", + "dict2 = {}\n", + "\n", + "filename = 'data/result_燕山石化.json'\n", + "with open(filename,'r') as fl:\n", + " dict1 = json.load(fl)\n", + "\n", + "for k, v in dict1.items():\n", + " m_name = v['name']\n", + " m_depart = v['unit'] \n", + " dict2[int(k)] = [m_name,m_depart]\n", + "\n", + "fls = glob.glob(f'{fi_path}/*.pdf')\n", + "\n", + "for fn in fls:\n", + " old.append(os.path.basename(fn).split('.')[0])\n", + "\n", + "for n in old: \n", + " o_name = f'{fi_path}/{n}.pdf'\n", + " new_path = Path(fi_path,'new',dict1[n]['unit'])\n", + " new_path.mkdir(parents = True, exist_ok = True)\n", + " n_name = Path(new_path,f'{str(n).rjust(5,\"0\")}-{dict2[int(n)][0]}.pdf')\n", + " if not os.path.exists(n_name):\n", + " shutil.copyfile(o_name,n_name)\n", + " print(n_name)\n", + " \n", + "print('ok')" + ] + }, + { + "cell_type": "markdown", + "id": "377fc3ce-42c6-4710-a820-392e8d536463", + "metadata": { + "execution": { + "iopub.execute_input": "2023-06-08T12:40:32.030220Z", + "iopub.status.busy": "2023-06-08T12:40:32.029391Z", + "iopub.status.idle": "2023-06-08T12:40:32.039592Z", + "shell.execute_reply": "2023-06-08T12:40:32.037309Z", + "shell.execute_reply.started": "2023-06-08T12:40:32.030146Z" + } + }, + "source": [ + "## 生成电子文件明细表" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "6865596a-6524-483f-a984-b773f8d2cab0", + "metadata": { + "execution": { + "iopub.execute_input": "2023-06-08T12:41:21.045391Z", + "iopub.status.busy": "2023-06-08T12:41:21.044573Z", + "iopub.status.idle": "2023-06-08T12:41:21.701415Z", + "shell.execute_reply": "2023-06-08T12:41:21.700659Z", + "shell.execute_reply.started": "2023-06-08T12:41:21.045318Z" + } + }, + "outputs": [], + "source": [ + "import os,sys,shutil\n", + "import json\n", + "import openpyxl\n", + "import glob\n", + "from pathlib import Path\n", + "\n", + "fi_path = 'file/20230530'\n", + "old = []\n", + "dict2 = {}\n", + "list1 = []\n", + "\n", + "filename = 'data/result_燕山石化.json'\n", + "with open(filename,'r') as fl:\n", + " dict1 = json.load(fl)\n", + "\n", + "for k, v in dict1.items(): \n", + " m_name = v['name']\n", + " m_depart = v['unit'] \n", + " dict2[int(k)] = [m_name,m_depart]\n", + " list1.append([k.rjust(5,\"0\"),m_depart,m_name])\n", + "filename = 'data/燕山石化体测报告明细表.xlsx'\n", + "wb = openpyxl.Workbook()\n", + "sheet = wb.active\n", + "\n", + "for row in list1:\n", + " sheet.append(row)\n", + "wb.save(filename)" + ] + }, { "cell_type": "markdown", "id": "ce1487ed-2b11-4a3c-a305-5499af4526d1", @@ -827,31 +925,12 @@ }, { "cell_type": "code", - "execution_count": 106, + "execution_count": null, "id": "aab3ed2b-54f1-42de-8e83-cc559827a4b5", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:07:09.829773Z", - "iopub.status.busy": "2023-05-27T13:07:09.829372Z", - "iopub.status.idle": "2023-05-27T13:07:10.760194Z", - "shell.execute_reply": "2023-05-27T13:07:10.759179Z", - "shell.execute_reply.started": "2023-05-27T13:07:09.829747Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "7734\n", - "['3520', '7790', '3125', '4025', '3231', '5690', '4551']\n", - "7727\n", - "ok\n", - "7727\n" - ] - } - ], + "outputs": [], "source": [ "import json\n", "import time\n", @@ -920,27 +999,12 @@ }, { "cell_type": "code", - "execution_count": 107, + "execution_count": null, "id": "9851d728-8c85-48fd-b7d6-d0104318e89d", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:07:15.219600Z", - "iopub.status.busy": "2023-05-27T13:07:15.219207Z", - "iopub.status.idle": "2023-05-27T13:07:15.684092Z", - "shell.execute_reply": "2023-05-27T13:07:15.683071Z", - "shell.execute_reply.started": "2023-05-27T13:07:15.219573Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "ok\n" - ] - } - ], + "outputs": [], "source": [ "import json\n", "import datetime\n", @@ -964,16 +1028,9 @@ }, { "cell_type": "code", - "execution_count": 99, + "execution_count": null, "id": "e0f26f0a-6374-4903-a6c9-99cf25e5db2a", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T12:56:45.270021Z", - "iopub.status.busy": "2023-05-27T12:56:45.269580Z", - "iopub.status.idle": "2023-05-27T12:56:45.401202Z", - "shell.execute_reply": "2023-05-27T12:56:45.400687Z", - "shell.execute_reply.started": "2023-05-27T12:56:45.269990Z" - }, "tags": [] }, "outputs": [], @@ -997,27 +1054,12 @@ }, { "cell_type": "code", - "execution_count": 108, + "execution_count": null, "id": "d171e87d-9709-4de8-8261-e1eb4343e002", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:07:18.957951Z", - "iopub.status.busy": "2023-05-27T13:07:18.957558Z", - "iopub.status.idle": "2023-05-27T13:07:19.475930Z", - "shell.execute_reply": "2023-05-27T13:07:19.475170Z", - "shell.execute_reply.started": "2023-05-27T13:07:18.957923Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "ok\n" - ] - } - ], + "outputs": [], "source": [ "import json\n", "\n", @@ -1051,31 +1093,12 @@ }, { "cell_type": "code", - "execution_count": 109, + "execution_count": null, "id": "864da63f-bc6a-4246-81ec-e626680cf300", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:07:24.343430Z", - "iopub.status.busy": "2023-05-27T13:07:24.342578Z", - "iopub.status.idle": "2023-05-27T13:07:24.834062Z", - "shell.execute_reply": "2023-05-27T13:07:24.833272Z", - "shell.execute_reply.started": "2023-05-27T13:07:24.343389Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "0~255分人数:3667人,男性:3136人,女性:531人\n", - "256~332分人数:3117人,男性:2033人,女性:1084人\n", - "333~367分人数:745人,男性:383人,女性:362人\n", - "368~500分人数:198人,男性:74人,女性:124人\n", - "ok\n" - ] - } - ], + "outputs": [], "source": [ "import json\n", "\n", @@ -1119,34 +1142,12 @@ }, { "cell_type": "code", - "execution_count": 110, + "execution_count": null, "id": "b605b817-da5f-407f-916b-ce4750727335", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:07:41.685574Z", - "iopub.status.busy": "2023-05-27T13:07:41.685226Z", - "iopub.status.idle": "2023-05-27T13:07:41.804179Z", - "shell.execute_reply": "2023-05-27T13:07:41.803229Z", - "shell.execute_reply.started": "2023-05-27T13:07:41.685551Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "20~24岁平均成绩:2.4分,人数:429人,男性:312人\n", - "25~29岁平均成绩:2.58分,人数:400人,男性:245人\n", - "30~34岁平均成绩:2.6分,人数:309人,男性:210人\n", - "35~39岁平均成绩:2.7分,人数:553人,男性:317人\n", - "40~44岁平均成绩:2.57分,人数:1339人,男性:844人\n", - "45~49岁平均成绩:2.55分,人数:1687人,男性:1071人\n", - "50~54岁平均成绩:2.53分,人数:1920人,男性:1559人\n", - "55~69岁平均成绩:2.43分,人数:1090人,男性:1068人\n" - ] - } - ], + "outputs": [], "source": [ "import json\n", "\n", @@ -1181,34 +1182,12 @@ }, { "cell_type": "code", - "execution_count": 111, + "execution_count": null, "id": "96506507-439f-42b5-93f7-bcba8930dae9", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:07:48.465152Z", - "iopub.status.busy": "2023-05-27T13:07:48.464314Z", - "iopub.status.idle": "2023-05-27T13:07:48.630296Z", - "shell.execute_reply": "2023-05-27T13:07:48.629582Z", - "shell.execute_reply.started": "2023-05-27T13:07:48.465113Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "20~24岁平均成绩:2.31分,人数:312人\n", - "25~29岁平均成绩:2.44分,人数:245人\n", - "30~34岁平均成绩:2.43分,人数:210人\n", - "35~39岁平均成绩:2.5分,人数:317人\n", - "40~44岁平均成绩:2.43分,人数:844人\n", - "45~49岁平均成绩:2.38分,人数:1071人\n", - "50~54岁平均成绩:2.44分,人数:1559人\n", - "55~80岁平均成绩:2.41分,人数:1068人\n" - ] - } - ], + "outputs": [], "source": [ "import json\n", "\n", @@ -1242,34 +1221,12 @@ }, { "cell_type": "code", - "execution_count": 112, + "execution_count": null, "id": "10cc353b-32cb-45eb-9362-da22b170c301", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:08:02.434443Z", - "iopub.status.busy": "2023-05-27T13:08:02.434037Z", - "iopub.status.idle": "2023-05-27T13:08:02.593896Z", - "shell.execute_reply": "2023-05-27T13:08:02.593181Z", - "shell.execute_reply.started": "2023-05-27T13:08:02.434415Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "20~24岁平均成绩:2.63分,人数:117人\n", - "25~29岁平均成绩:2.8分,人数:155人\n", - "30~34岁平均成绩:2.95分,人数:99人\n", - "35~39岁平均成绩:2.95分,人数:236人\n", - "40~44岁平均成绩:2.79分,人数:495人\n", - "45~49岁平均成绩:2.84分,人数:616人\n", - "50~54岁平均成绩:2.94分,人数:361人\n", - "55~80岁平均成绩:2.91分,人数:22人\n" - ] - } - ], + "outputs": [], "source": [ "import json\n", "\n", @@ -1303,29 +1260,12 @@ }, { "cell_type": "code", - "execution_count": 113, + "execution_count": null, "id": "532b4d97-df50-4fd9-9e85-1181afcd366e", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:08:06.957835Z", - "iopub.status.busy": "2023-05-27T13:08:06.957012Z", - "iopub.status.idle": "2023-05-27T13:08:07.096914Z", - "shell.execute_reply": "2023-05-27T13:08:07.096024Z", - "shell.execute_reply.started": "2023-05-27T13:08:06.957795Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "平均成绩:2.4206分,男性:5626人\n", - "平均成绩:2.859分,女性:2101人\n", - "平均成绩:2.5398分,总体:7727人\n" - ] - } - ], + "outputs": [], "source": [ "import json\n", "\n", @@ -1364,31 +1304,12 @@ }, { "cell_type": "code", - "execution_count": 114, + "execution_count": null, "id": "4377cf1d-83f0-4e6b-819f-f274915886b9", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:08:27.764353Z", - "iopub.status.busy": "2023-05-27T13:08:27.763918Z", - "iopub.status.idle": "2023-05-27T13:08:28.264684Z", - "shell.execute_reply": "2023-05-27T13:08:28.263691Z", - "shell.execute_reply.started": "2023-05-27T13:08:27.764325Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "0~255分人数:3667人,男性:3136人,女性:531人\n", - "256~332分人数:3117人,男性:2033人,女性:1084人\n", - "333~367分人数:745人,男性:383人,女性:362人\n", - "368~500分人数:198人,男性:74人,女性:124人\n", - "ok\n" - ] - } - ], + "outputs": [], "source": [ "import json\n", "\n", @@ -1432,34 +1353,12 @@ }, { "cell_type": "code", - "execution_count": 115, + "execution_count": null, "id": "4fafdc11-c93b-4a8d-854e-61748713d0f8", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:08:31.927585Z", - "iopub.status.busy": "2023-05-27T13:08:31.927169Z", - "iopub.status.idle": "2023-05-27T13:08:32.089666Z", - "shell.execute_reply": "2023-05-27T13:08:32.088681Z", - "shell.execute_reply.started": "2023-05-27T13:08:31.927557Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "20-24 {'不合格': 44, '合格': 65, '良好': 5, '优秀': 3}\n", - "25-29 {'不合格': 43, '良好': 35, '合格': 74, '优秀': 3}\n", - "30-34 {'不合格': 17, '合格': 58, '良好': 19, '优秀': 5}\n", - "35-39 {'不合格': 44, '合格': 128, '良好': 52, '优秀': 12}\n", - "40-44 {'良好': 72, '不合格': 146, '合格': 241, '优秀': 36}\n", - "45-49 {'不合格': 167, '合格': 316, '优秀': 38, '良好': 95}\n", - "50-54 {'不合格': 65, '合格': 193, '良好': 77, '优秀': 26}\n", - "55-80 {'合格': 9, '不合格': 5, '优秀': 1, '良好': 7}\n" - ] - } - ], + "outputs": [], "source": [ "nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n", "\n", @@ -1499,34 +1398,12 @@ }, { "cell_type": "code", - "execution_count": 116, + "execution_count": null, "id": "cae4d5b6-20ef-4a24-91ea-59ddc691349a", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:08:35.357895Z", - "iopub.status.busy": "2023-05-27T13:08:35.357070Z", - "iopub.status.idle": "2023-05-27T13:08:35.520889Z", - "shell.execute_reply": "2023-05-27T13:08:35.520000Z", - "shell.execute_reply.started": "2023-05-27T13:08:35.357854Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "20-24 {'不合格': 204, '合格': 96, '良好': 11, '优秀': 1}\n", - "25-29 {'不合格': 140, '良好': 19, '合格': 84, '优秀': 2}\n", - "30-34 {'不合格': 111, '合格': 81, '良好': 15, '优秀': 3}\n", - "35-39 {'不合格': 161, '合格': 124, '良好': 27, '优秀': 5}\n", - "40-44 {'良好': 63, '不合格': 462, '合格': 302, '优秀': 17}\n", - "45-49 {'不合格': 606, '合格': 389, '优秀': 11, '良好': 65}\n", - "50-54 {'不合格': 853, '合格': 567, '良好': 117, '优秀': 22}\n", - "55-80 {'合格': 390, '不合格': 599, '优秀': 13, '良好': 66}\n" - ] - } - ], + "outputs": [], "source": [ "nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n", "\n", @@ -1566,42 +1443,12 @@ }, { "cell_type": "code", - "execution_count": 117, + "execution_count": null, "id": "9d5660b9-2046-4319-b2c2-29ba5ddf818f", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:08:41.550284Z", - "iopub.status.busy": "2023-05-27T13:08:41.549870Z", - "iopub.status.idle": "2023-05-27T13:08:41.722994Z", - "shell.execute_reply": "2023-05-27T13:08:41.722259Z", - "shell.execute_reply.started": "2023-05-27T13:08:41.550257Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "热电厂工会 2.41 681\n", - "炼油厂工会 2.48 1006\n", - "有机化工厂工会 2.57 446\n", - "储运厂工会 2.37 983\n", - "合成橡胶厂工会 2.46 713\n", - "检验计量中心工会 2.62 632\n", - "烯烃厂工会 2.59 410\n", - "化学品厂工会 2.4 368\n", - "合成树脂厂 2.46 443\n", - "生产运行保障中心 2.56 371\n", - "高科公司工会 2.69 304\n", - "机关工会 2.84 378\n", - "行政事务中心(离退中心)工会 2.76 524\n", - "教育培训中心工会 2.73 72\n", - "物装中心工会 2.67 182\n", - "消防中心工会 2.81 214\n" - ] - } - ], + "outputs": [], "source": [ "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n", @@ -1631,36 +1478,12 @@ }, { "cell_type": "code", - "execution_count": 118, + "execution_count": null, "id": "38d9f91d-18de-4df1-8179-03579008c2d0", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:08:45.314635Z", - "iopub.status.busy": "2023-05-27T13:08:45.314235Z", - "iopub.status.idle": "2023-05-27T13:08:45.484153Z", - "shell.execute_reply": "2023-05-27T13:08:45.483219Z", - "shell.execute_reply.started": "2023-05-27T13:08:45.314607Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "体重 3.41 7724\n", - "肺活量 2.96 7651\n", - "握力 2.36 7677\n", - "坐位体前屈 2.78 6752\n", - "纵跳 1.89 7302\n", - "俯卧撑 1.99 4557\n", - "一分钟仰卧起坐 3.81 1680\n", - "单脚站立 1.7 7561\n", - "选择反应时 2.76 7579\n", - "台阶指数 2.77 5257\n" - ] - } - ], + "outputs": [], "source": [ "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n", @@ -1685,27 +1508,12 @@ }, { "cell_type": "code", - "execution_count": 119, + "execution_count": null, "id": "0bf8400c-060e-420e-ba66-04fb67bfc09a", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:08:51.679613Z", - "iopub.status.busy": "2023-05-27T13:08:51.678996Z", - "iopub.status.idle": "2023-05-27T13:08:54.061451Z", - "shell.execute_reply": "2023-05-27T13:08:54.060702Z", - "shell.execute_reply.started": "2023-05-27T13:08:51.679572Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "3478\n" - ] - } - ], + "outputs": [], "source": [ "import openpyxl\n", "import json\n", @@ -1741,31 +1549,12 @@ }, { "cell_type": "code", - "execution_count": 120, + "execution_count": null, "id": "daa09874-e7a1-4aaa-b648-023e8358adfb", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:09:05.580283Z", - "iopub.status.busy": "2023-05-27T13:09:05.579869Z", - "iopub.status.idle": "2023-05-27T13:09:05.825237Z", - "shell.execute_reply": "2023-05-27T13:09:05.824360Z", - "shell.execute_reply.started": "2023-05-27T13:09:05.580256Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "0~255分人数:1933人,男性:1675人,女性:258人\n", - "256~332分人数:1263人,男性:906人,女性:357人\n", - "333~367分人数:228人,男性:140人,女性:88人\n", - "368~500分人数:54人,男性:30人,女性:24人\n", - "ok\n" - ] - } - ], + "outputs": [], "source": [ "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n", @@ -1806,34 +1595,12 @@ }, { "cell_type": "code", - "execution_count": 121, + "execution_count": null, "id": "43d4e63d-a615-4ac0-b075-c938dc346e98", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:09:44.193852Z", - "iopub.status.busy": "2023-05-27T13:09:44.192991Z", - "iopub.status.idle": "2023-05-27T13:09:44.545582Z", - "shell.execute_reply": "2023-05-27T13:09:44.544856Z", - "shell.execute_reply.started": "2023-05-27T13:09:44.193810Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "20~24岁平均成绩:2.31分,人数:184人\n", - "25~29岁平均成绩:2.41分,人数:96人\n", - "30~34岁平均成绩:2.33分,人数:99人\n", - "35~39岁平均成绩:2.36分,人数:113人\n", - "40~44岁平均成绩:2.35分,人数:527人\n", - "45~49岁平均成绩:2.32分,人数:616人\n", - "50~54岁平均成绩:2.35分,人数:739人\n", - "55~80岁平均成绩:2.32分,人数:377人\n" - ] - } - ], + "outputs": [], "source": [ "nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n", "\n", @@ -1857,34 +1624,12 @@ }, { "cell_type": "code", - "execution_count": 122, + "execution_count": null, "id": "69d07666-1a7d-42a0-85df-e88f956b9444", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:09:52.831237Z", - "iopub.status.busy": "2023-05-27T13:09:52.830821Z", - "iopub.status.idle": "2023-05-27T13:09:52.930980Z", - "shell.execute_reply": "2023-05-27T13:09:52.930197Z", - "shell.execute_reply.started": "2023-05-27T13:09:52.831209Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "20~24岁平均成绩:2.57分,人数:69人\n", - "25~29岁平均成绩:2.67分,人数:32人\n", - "30~34岁平均成绩:2.73分,人数:18人\n", - "35~39岁平均成绩:2.62分,人数:43人\n", - "40~44岁平均成绩:2.63分,人数:228人\n", - "45~49岁平均成绩:2.7分,人数:295人\n", - "50~54岁平均成绩:2.71分,人数:42人\n", - "55~80岁平均成绩:0.0分,人数:0人\n" - ] - } - ], + "outputs": [], "source": [ "nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n", "\n", @@ -1916,31 +1661,12 @@ }, { "cell_type": "code", - "execution_count": 123, + "execution_count": null, "id": "798112d0-63e6-4a4b-9959-dbadf3c4ed54", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:11:29.890108Z", - "iopub.status.busy": "2023-05-27T13:11:29.889257Z", - "iopub.status.idle": "2023-05-27T13:11:30.148770Z", - "shell.execute_reply": "2023-05-27T13:11:30.148046Z", - "shell.execute_reply.started": "2023-05-27T13:11:29.890066Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "0~255分人数:1933人,男性:1675人,女性:258人\n", - "256~332分人数:1263人,男性:906人,女性:357人\n", - "333~367分人数:228人,男性:140人,女性:88人\n", - "368~500分人数:54人,男性:30人,女性:24人\n", - "ok\n" - ] - } - ], + "outputs": [], "source": [ "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n", @@ -1990,29 +1716,12 @@ }, { "cell_type": "code", - "execution_count": 125, + "execution_count": null, "id": "e9444e38-450c-4e70-a98e-aa312d83d9c4", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T13:58:22.704523Z", - "iopub.status.busy": "2023-05-27T13:58:22.703677Z", - "iopub.status.idle": "2023-05-27T13:58:22.796742Z", - "shell.execute_reply": "2023-05-27T13:58:22.795740Z", - "shell.execute_reply.started": "2023-05-27T13:58:22.704483Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "平均成绩:2.3453分,男性:2751人\n", - "平均成绩:2.6869分,女性:727人\n", - "平均成绩:2.4167分,总体:3478人\n" - ] - } - ], + "outputs": [], "source": [ "nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n", "#filename = 'data/result_石家庄.json'\n", @@ -2049,36 +1758,12 @@ }, { "cell_type": "code", - "execution_count": 126, + "execution_count": null, "id": "3248d9c5-bea2-492c-9a7a-ac2c9632b514", "metadata": { - "execution": { - "iopub.execute_input": "2023-05-27T14:58:29.579314Z", - "iopub.status.busy": "2023-05-27T14:58:29.578870Z", - "iopub.status.idle": "2023-05-27T14:58:29.689623Z", - "shell.execute_reply": "2023-05-27T14:58:29.688913Z", - "shell.execute_reply.started": "2023-05-27T14:58:29.579287Z" - }, "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "体重 3.29 3478\n", - "肺活量 2.8 3438\n", - "握力 2.34 3449\n", - "坐位体前屈 2.74 2993\n", - "纵跳 1.7 3288\n", - "俯卧撑 1.94 2198\n", - "一分钟仰卧起坐 3.65 535\n", - "单脚站立 1.44 3390\n", - "选择反应时 2.65 3418\n", - "台阶指数 2.82 2179\n" - ] - } - ], + "outputs": [], "source": [ "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n",