diff --git a/体测单位/体质检测数据处理.ipynb b/体测单位/体质检测数据处理.ipynb index 995b899..d1b22e1 100644 --- a/体测单位/体质检测数据处理.ipynb +++ b/体测单位/体质检测数据处理.ipynb @@ -431,15 +431,15 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 23, "id": "3e614f4a-a623-48e2-97f8-b31f62c9a983", "metadata": { "execution": { - "iopub.execute_input": "2024-10-22T02:28:16.776885Z", - "iopub.status.busy": "2024-10-22T02:28:16.776070Z", - "iopub.status.idle": "2024-10-22T02:28:16.799797Z", - "shell.execute_reply": "2024-10-22T02:28:16.798876Z", - "shell.execute_reply.started": "2024-10-22T02:28:16.776803Z" + "iopub.execute_input": "2024-11-06T07:40:00.103580Z", + "iopub.status.busy": "2024-11-06T07:40:00.102762Z", + "iopub.status.idle": "2024-11-06T07:40:00.398714Z", + "shell.execute_reply": "2024-11-06T07:40:00.398050Z", + "shell.execute_reply.started": "2024-11-06T07:40:00.103502Z" }, "tags": [] }, @@ -448,8 +448,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "44\n", - "44\n" + "4078\n", + "4078\n" ] } ], @@ -482,11 +482,11 @@ "re_ta = {}\n", "dict1 = {}\n", "list1 = []\n", - "filename = 'data/中国石化化工销售.json'\n", + "filename = 'data/天津石化人员2024.json'\n", "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n", "\n", - "filename = 'data/places_result_20241022.csv'\n", + "filename = 'data/places_result_20241104.csv'\n", "with open(filename,'r',newline='') as csv_file:\n", " fl = csv.reader(csv_file,delimiter=',')\n", " header = next(fl) \n", @@ -527,7 +527,7 @@ " score = int(result[4])/item[m_item]['divisor'] \n", " re_ta[user][item_name]['成绩'] = f'{score} {item[m_item][\"unit\"]}'\n", "print(len(re_ta))\n", - "filename = 'data/result_中国石化化工销售2023.json'\n", + "filename = 'data/result_天津石化2024.json'\n", "\n", "with open(filename,'w') as fl:\n", " json.dump(re_ta, fl, ensure_ascii=False) \n", @@ -544,15 +544,15 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 24, "id": "141b30dc-5975-4dcb-9bc3-9b20d26a0917", "metadata": { "execution": { - "iopub.execute_input": "2024-10-22T02:28:54.799670Z", - "iopub.status.busy": "2024-10-22T02:28:54.798913Z", - "iopub.status.idle": "2024-10-22T02:28:54.824340Z", - "shell.execute_reply": "2024-10-22T02:28:54.823796Z", - "shell.execute_reply.started": "2024-10-22T02:28:54.799596Z" + "iopub.execute_input": "2024-11-06T07:40:45.997372Z", + "iopub.status.busy": "2024-11-06T07:40:45.996600Z", + "iopub.status.idle": "2024-11-06T07:40:46.225740Z", + "shell.execute_reply": "2024-11-06T07:40:46.225151Z", + "shell.execute_reply.started": "2024-11-06T07:40:45.997299Z" }, "tags": [] }, @@ -662,7 +662,7 @@ "\n", "#list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp','height','weight']\n", "list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp']\n", - "filename = 'data/result_中国石化化工销售2023.json'\n", + "filename = 'data/result_天津石化2024.json'\n", "with open(filename,'r') as fl:\n", " dict2 = json.load(fl) \n", "for k, v in dict2.items():\n", @@ -683,7 +683,7 @@ " dict2[k][item_en]['score'] = cal_score(data1)\n", " #print(k,v[item_en]['成绩'],cal_score(data1))\n", "\n", - "filename = f'data/result_中国石化化工销售2023.json'\n", + "filename = f'data/result_天津石化2024.json'\n", "with open(filename,'w') as fl:\n", " json.dump(dict2,fl , ensure_ascii=False) \n", "print('ok!') " @@ -729,11 +729,11 @@ "headers = {\n", " \"Content-Type\": \"application/json; charset=UTF-8\"\n", " }\n", - "filename = 'data/result_东营工程设计院2024_all.json'\n", + "filename = 'data/result_天津石化2024.json'\n", "with open(filename,'r') as fl:\n", " dict1 = json.load(fl)\n", "list1 = []\n", - "file_path ='./中石化石油工程设计有限公司1/'\n", + "file_path ='./天津石化2024/'\n", "list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp','bmi']\n", "i=0\n", "list2 = []\n", @@ -743,7 +743,7 @@ " \n", " id = str(k).rjust(4,\"0\")\n", " mydata['path'] = file_path+id+'-'+ v['name']+'.pdf'\n", - " mydata['title'] = '中石化石油工程设计有限公司'\n", + " mydata['title'] = '天津石化2024'\n", " mydata['subtitle'] = v['unit']\n", " mydata['id'] = id\n", " mydata['name'] = v['name']\n", diff --git a/体测单位/天津石化.ipynb b/体测单位/天津石化.ipynb index 0bc730d..0c4eab3 100644 --- a/体测单位/天津石化.ipynb +++ b/体测单位/天津石化.ipynb @@ -2869,15 +2869,15 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 53, "id": "2fdbadd7-e9b1-45bf-ae95-52b4d65e03e8", "metadata": { "execution": { - "iopub.execute_input": "2024-10-23T09:55:33.364069Z", - "iopub.status.busy": "2024-10-23T09:55:33.363405Z", - "iopub.status.idle": "2024-10-23T09:55:33.951219Z", - "shell.execute_reply": "2024-10-23T09:55:33.950610Z", - "shell.execute_reply.started": "2024-10-23T09:55:33.364010Z" + "iopub.execute_input": "2024-10-30T11:24:58.227514Z", + "iopub.status.busy": "2024-10-30T11:24:58.226738Z", + "iopub.status.idle": "2024-10-30T11:24:58.856785Z", + "shell.execute_reply": "2024-10-30T11:24:58.856213Z", + "shell.execute_reply.started": "2024-10-30T11:24:58.227440Z" } }, "outputs": [ @@ -2978,15 +2978,15 @@ }, { "cell_type": "code", - "execution_count": 31, + "execution_count": 60, "id": "f922ad6a-e7ff-4ff9-923f-3e7aa8ea112b", "metadata": { "execution": { - "iopub.execute_input": "2024-10-23T09:55:59.147673Z", - "iopub.status.busy": "2024-10-23T09:55:59.146895Z", - "iopub.status.idle": "2024-10-23T09:55:59.282790Z", - "shell.execute_reply": "2024-10-23T09:55:59.282220Z", - "shell.execute_reply.started": "2024-10-23T09:55:59.147598Z" + "iopub.execute_input": "2024-11-04T01:48:56.782816Z", + "iopub.status.busy": "2024-11-04T01:48:56.782058Z", + "iopub.status.idle": "2024-11-04T01:48:57.061456Z", + "shell.execute_reply": "2024-11-04T01:48:57.060893Z", + "shell.execute_reply.started": "2024-11-04T01:48:56.782746Z" } }, "outputs": [ @@ -2994,8 +2994,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "2284\n", - "2284\n" + "4078\n", + "4078\n" ] } ], @@ -3018,7 +3018,7 @@ "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n", "\n", - "filename = 'data/places_result_20241023.csv'\n", + "filename = 'data/places_result_20241104.csv'\n", "with open(filename,'r',newline='') as csv_file:\n", " fl = csv.reader(csv_file,delimiter=',')\n", " header = next(fl) \n", @@ -3057,15 +3057,15 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": 62, "id": "f59cf12c-d409-4de8-80f9-8264e4a2d221", "metadata": { "execution": { - "iopub.execute_input": "2024-10-23T09:56:07.021662Z", - "iopub.status.busy": "2024-10-23T09:56:07.021113Z", - "iopub.status.idle": "2024-10-23T09:56:07.230651Z", - "shell.execute_reply": "2024-10-23T09:56:07.230168Z", - "shell.execute_reply.started": "2024-10-23T09:56:07.021612Z" + "iopub.execute_input": "2024-11-04T01:50:30.199976Z", + "iopub.status.busy": "2024-11-04T01:50:30.199216Z", + "iopub.status.idle": "2024-11-04T01:50:31.228142Z", + "shell.execute_reply": "2024-11-04T01:50:31.227668Z", + "shell.execute_reply.started": "2024-11-04T01:50:30.199902Z" } }, "outputs": [], @@ -3074,8 +3074,8 @@ "import openpyxl\n", "\n", "items = ['身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n", - "#title = ['编号','姓名','性别','单位','部门','身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n", - "title = ['编号','姓名','性别','单位','部门']\n", + "title = ['编号','姓名','性别','单位','部门','身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n", + "\n", "filename = 'data/result_天津2024.json'\n", "with open(filename,'r') as fl:\n", " dict1 = json.load(fl)\n", @@ -3092,8 +3092,15 @@ " list2.append(dict2[k]['sex'])\n", " list2.append(dict2[k]['unit'])\n", " list2.append(dict2[k]['sub_unit'])\n", + " for item in items:\n", + " if item in v.keys():\n", + " list2.append(v[item]['成绩']) \n", + " elif item =='name':\n", + " list2.append(v[item])\n", + " else:\n", + " list2.append('') \n", " list1.append(list2)\n", - "filename = 'data/天津石化体测情况(截至20241023).xlsx'\n", + "filename = 'data/天津石化体测情况(2024年).xlsx'\n", "wb = openpyxl.Workbook()\n", "sheet = wb.active\n", "sheet.append(title)\n", @@ -3113,15 +3120,15 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": 59, "id": "8301201e-43fc-4d24-94a0-9c554ca39dfb", "metadata": { "execution": { - "iopub.execute_input": "2024-10-23T09:56:17.323294Z", - "iopub.status.busy": "2024-10-23T09:56:17.322526Z", - "iopub.status.idle": "2024-10-23T09:56:17.364386Z", - "shell.execute_reply": "2024-10-23T09:56:17.363829Z", - "shell.execute_reply.started": "2024-10-23T09:56:17.323222Z" + "iopub.execute_input": "2024-10-31T09:18:08.391778Z", + "iopub.status.busy": "2024-10-31T09:18:08.391003Z", + "iopub.status.idle": "2024-10-31T09:18:08.453792Z", + "shell.execute_reply": "2024-10-31T09:18:08.453243Z", + "shell.execute_reply.started": "2024-10-31T09:18:08.391707Z" } }, "outputs": [], @@ -3157,7 +3164,7 @@ " list2 = [k,v['人数']]\n", " list1.append(list2)\n", "\n", - "filename = 'data/天津部门未测试情况(截至20241023).xlsx'\n", + "filename = 'data/天津部门未测试情况(截至20241031).xlsx'\n", "wb = openpyxl.Workbook()\n", "sheet = wb.active\n", "sheet.append(title)\n", diff --git a/体测单位/镇海.ipynb b/体测单位/镇海.ipynb index bd55c0f..75eeeff 100644 --- a/体测单位/镇海.ipynb +++ b/体测单位/镇海.ipynb @@ -18,16 +18,32 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 39, "id": "ba24132c-133f-4508-8fe7-e68d1908b6e9", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:50:51.333490Z", + "iopub.status.busy": "2024-11-05T05:50:51.333249Z", + "iopub.status.idle": "2024-11-05T05:50:51.533334Z", + "shell.execute_reply": "2024-11-05T05:50:51.532707Z", + "shell.execute_reply.started": "2024-11-05T05:50:51.333467Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ok\n" + ] + } + ], "source": [ "import openpyxl\n", "import json\n", "from datetime import date\n", "\n", - "wb = openpyxl.load_workbook('data/镇海体质监测报名.xlsx')\n", + "wb = openpyxl.load_workbook('data/镇海参加测试人员名单(合并).xlsx')\n", "sheet = wb.active\n", "# sheets = wb.sheetnames\n", "person = {}\n", @@ -38,14 +54,14 @@ " dict1 = {}\n", " dict1['name'] = sheet.cell(n, 2).value\n", " dict1['sex'] = sheet.cell(n, 3).value\n", - " dict1['unit'] = sheet.cell(n, 7).value\n", - " if sheet.cell(n, 5).value is not None:\n", - " dict1['gh'] = sheet.cell(n, 5).value\n", - " dict1['birth'] = str(sheet.cell(n, 6).value).replace('/','-').split(' ')[0] \n", - " if sheet.cell(n, 4).value is not None:\n", - " dict1['phone'] = str(sheet.cell(n,4).value)\n", + " dict1['unit'] = sheet.cell(n, 5).value\n", + " if sheet.cell(n, 6).value is not None:\n", + " dict1['gh'] = sheet.cell(n, 6).value\n", + " dict1['birth'] = str(sheet.cell(n, 4).value).replace('/','-').split(' ')[0] \n", + " if sheet.cell(n, 7).value is not None:\n", + " dict1['phone'] = str(sheet.cell(n,7).value)\n", " person[code] = dict1\n", - "filename = 'data/镇海.json'\n", + "filename = 'data/镇海(合并).json'\n", "with open(filename, 'w') as fl:\n", " json.dump(person, fl, ensure_ascii=False)\n", "print('ok')" @@ -97,10 +113,27 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 40, "id": "5d864909-d10f-461d-8e6e-dc5c43613576", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:50:57.671950Z", + "iopub.status.busy": "2024-11-05T05:50:57.669968Z", + "iopub.status.idle": "2024-11-05T05:50:57.814421Z", + "shell.execute_reply": "2024-11-05T05:50:57.813860Z", + "shell.execute_reply.started": "2024-11-05T05:50:57.671867Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1365\n", + "1365\n" + ] + } + ], "source": [ "import json\n", "import time\n", @@ -116,7 +149,7 @@ "re_ta = {}\n", "dict1 = {}\n", "list1 = []\n", - "filename = 'data/镇海.json'\n", + "filename = 'data/镇海(合并).json'\n", "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n", "\n", @@ -142,7 +175,7 @@ " score = int(result[4])/item[m_item]['divisor'] \n", " re_ta[user][item_name]['成绩'] = f'{score} {item[m_item][\"unit\"]}'\n", "print(len(re_ta))\n", - "filename = 'data/result_镇海.json'\n", + "filename = 'data/result_镇海(合并).json'\n", "\n", "with open(filename,'w') as fl:\n", " json.dump(re_ta, fl, ensure_ascii=False) \n", @@ -303,10 +336,27 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 41, "id": "7f038e8d-dd57-4880-8726-6dfa86fbc4a2", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:51:04.272284Z", + "iopub.status.busy": "2024-11-05T05:51:04.271551Z", + "iopub.status.idle": "2024-11-05T05:51:04.391755Z", + "shell.execute_reply": "2024-11-05T05:51:04.391153Z", + "shell.execute_reply.started": "2024-11-05T05:51:04.272213Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "1365\n", + "1365\n" + ] + } + ], "source": [ "import json\n", "import datetime\n", @@ -336,7 +386,7 @@ "re_ta = {}\n", "dict1 = {}\n", "list1 = []\n", - "filename = 'data/镇海.json'\n", + "filename = 'data/镇海(合并).json'\n", "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n", "\n", @@ -381,7 +431,7 @@ " score = int(result[4])/item[m_item]['divisor'] \n", " re_ta[user][item_name]['成绩'] = f'{score} {item[m_item][\"unit\"]}'\n", "print(len(re_ta))\n", - "filename = 'data/result_镇海1.json'\n", + "filename = 'data/result_镇海(合并).json'\n", "\n", "with open(filename,'w') as fl:\n", " json.dump(re_ta, fl, ensure_ascii=False) \n", @@ -398,10 +448,26 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 42, "id": "763aa68a-da54-4745-a759-4399aba10f7e", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:51:27.308482Z", + "iopub.status.busy": "2024-11-05T05:51:27.307713Z", + "iopub.status.idle": "2024-11-05T05:51:27.406446Z", + "shell.execute_reply": "2024-11-05T05:51:27.405880Z", + "shell.execute_reply.started": "2024-11-05T05:51:27.308411Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ok!\n" + ] + } + ], "source": [ "import json\n", "import time\n", @@ -499,7 +565,7 @@ "\n", "#list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp','height','weight']\n", "list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp']\n", - "filename = 'data/result_镇海1.json'\n", + "filename = 'data/result_镇海(合并).json'\n", "with open(filename,'r') as fl:\n", " dict2 = json.load(fl) \n", "for k, v in dict2.items():\n", @@ -520,7 +586,7 @@ " dict2[k][item_en]['score'] = cal_score(data1)\n", " #print(k,v[item_en]['成绩'],cal_score(data1))\n", "\n", - "filename = f'data/result_镇海2.json'\n", + "filename = f'data/result_镇海(合并).json'\n", "with open(filename,'w') as fl:\n", " json.dump(dict2,fl , ensure_ascii=False) \n", "print('ok!') " @@ -548,7 +614,7 @@ "bmi = ['height','weight']\n", "title = ['编号','姓名','性别','单位/部门','身高','体重','bmi','肺活量','','握力','','坐位体前屈','','纵跳','','俯卧撑','','一分钟仰卧起坐','','单脚站立','','选择反应时','','台阶指数']\n", "\n", - "filename = 'data/result_镇海2.json'\n", + "filename = 'data/result_镇海(合并).json'\n", "with open(filename,'r') as fl:\n", " dict1 = json.load(fl)\n", "\n", @@ -617,7 +683,7 @@ "headers = {\n", " \"Content-Type\": \"application/json; charset=UTF-8\"\n", " }\n", - "filename = 'data/result_镇海2.json'\n", + "filename = 'data/result_镇海(合并).json'\n", "with open(filename,'r') as fl:\n", " dict1 = json.load(fl)\n", "list1 = []\n", @@ -1004,16 +1070,32 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 43, "id": "cccc2e43-7a73-48ec-8540-06b4d59f8ceb", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:52:29.953308Z", + "iopub.status.busy": "2024-11-05T05:52:29.952999Z", + "iopub.status.idle": "2024-11-05T05:52:30.049510Z", + "shell.execute_reply": "2024-11-05T05:52:30.048811Z", + "shell.execute_reply.started": "2024-11-05T05:52:29.953281Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "ok!\n" + ] + } + ], "source": [ "import json\n", "import openpyxl\n", "\n", "\n", - "filename = 'data/result_镇海2.json'\n", + "filename = 'data/result_镇海(合并).json'\n", "with open(filename,'r',encoding = 'utf-8') as fl:\n", " dict1 = json.load(fl)\n", "\n", @@ -1066,7 +1148,7 @@ " mydata['score'] = round(score/len(mydata['fits']),2)\n", " if len(mydata['fits']) >2:\n", " dict2[str(k)] = mydata\n", - "filename = f'data/data_镇海.json'\n", + "filename = f'data/data_镇海(合并).json'\n", "with open(filename,'w') as fl:\n", " json.dump(dict2,fl , ensure_ascii=False) \n", "print('ok!') " @@ -1164,13 +1246,31 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 44, "id": "d5721244-b5f5-4577-bae8-2e6c5bd8e4da", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:52:48.379274Z", + "iopub.status.busy": "2024-11-05T05:52:48.378455Z", + "iopub.status.idle": "2024-11-05T05:52:48.403648Z", + "shell.execute_reply": "2024-11-05T05:52:48.403090Z", + "shell.execute_reply.started": "2024-11-05T05:52:48.379196Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "平均成绩:3.1739分,男性:1074人\n", + "平均成绩:3.3303分,女性:291人\n", + "平均成绩:3.2072分,总体:1365人\n" + ] + } + ], "source": [ "nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n", - "filename = 'data/data_镇海.json'\n", + "filename = 'data/data_镇海(合并).json'\n", "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n", "i = 1\n", @@ -1204,10 +1304,31 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 45, "id": "cff50f06-3221-4340-950f-3a24073b8565", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:52:54.954047Z", + "iopub.status.busy": "2024-11-05T05:52:54.952637Z", + "iopub.status.idle": "2024-11-05T05:52:55.017683Z", + "shell.execute_reply": "2024-11-05T05:52:55.017112Z", + "shell.execute_reply.started": "2024-11-05T05:52:54.953966Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0~255分人数:134人,男性:118人,女性:16人\n", + "256~332分人数:585人,男性:472人,女性:113人\n", + "333~367分人数:431人,男性:333人,女性:98人\n", + "368~500分人数:215人,男性:151人,女性:64人\n", + "1365\n", + "ok\n" + ] + } + ], "source": [ "import json\n", "\n", @@ -1253,10 +1374,33 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 46, "id": "6baf0ff2-cdfa-4396-bcf8-3e23a18670dc", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:52:59.630256Z", + "iopub.status.busy": "2024-11-05T05:52:59.629491Z", + "iopub.status.idle": "2024-11-05T05:52:59.656868Z", + "shell.execute_reply": "2024-11-05T05:52:59.656319Z", + "shell.execute_reply.started": "2024-11-05T05:52:59.630184Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "20-24 {'良好': 29, '合格': 60, '优秀': 22, '不合格': 8}\n", + "25-29 {'良好': 24, '合格': 32, '不合格': 3, '优秀': 14}\n", + "30-34 {'不合格': 3, '优秀': 6, '合格': 11, '良好': 15}\n", + "35-39 {'合格': 5, '不合格': 2, '良好': 13, '优秀': 6}\n", + "40-44 {'良好': 6, '合格': 1, '优秀': 1, '不合格': 0}\n", + "45-49 {'良好': 8, '合格': 4, '优秀': 12, '不合格': 0}\n", + "50-54 {'良好': 3, '不合格': 0, '合格': 0, '优秀': 2}\n", + "55-80 {'优秀': 1, '合格': 0, '良好': 0, '不合格': 0}\n" + ] + } + ], "source": [ "nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n", "\n", @@ -1296,10 +1440,33 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 47, "id": "2979cf80-5268-4754-ab8a-11a539315e92", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:53:03.265936Z", + "iopub.status.busy": "2024-11-05T05:53:03.265166Z", + "iopub.status.idle": "2024-11-05T05:53:03.286342Z", + "shell.execute_reply": "2024-11-05T05:53:03.285817Z", + "shell.execute_reply.started": "2024-11-05T05:53:03.265865Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "20-24 {'良好': 97, '合格': 177, '优秀': 38, '不合格': 53}\n", + "25-29 {'良好': 57, '合格': 97, '不合格': 21, '优秀': 21}\n", + "30-34 {'不合格': 15, '优秀': 13, '合格': 43, '良好': 29}\n", + "35-39 {'合格': 57, '不合格': 11, '良好': 45, '优秀': 22}\n", + "40-44 {'良好': 27, '合格': 18, '优秀': 12, '不合格': 2}\n", + "45-49 {'良好': 26, '合格': 28, '优秀': 17, '不合格': 1}\n", + "50-54 {'良好': 33, '不合格': 10, '合格': 29, '优秀': 16}\n", + "55-80 {'优秀': 12, '合格': 23, '良好': 19, '不合格': 5}\n" + ] + } + ], "source": [ "nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n", "\n", @@ -1339,10 +1506,33 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 48, "id": "8a7cb3b0-d7be-44ac-a1ec-40bdcf29e83b", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:53:06.224468Z", + "iopub.status.busy": "2024-11-05T05:53:06.223694Z", + "iopub.status.idle": "2024-11-05T05:53:06.252031Z", + "shell.execute_reply": "2024-11-05T05:53:06.251436Z", + "shell.execute_reply.started": "2024-11-05T05:53:06.224396Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "16~24岁平均成绩:3.11分,人数:484人,男性:365人\n", + "25~29岁平均成绩:3.16分,人数:269人,男性:196人\n", + "30~34岁平均成绩:3.15分,人数:135人,男性:100人\n", + "35~39岁平均成绩:3.3分,人数:161人,男性:135人\n", + "40~44岁平均成绩:3.39分,人数:67人,男性:59人\n", + "45~49岁平均成绩:3.48分,人数:96人,男性:72人\n", + "50~54岁平均成绩:3.29分,人数:93人,男性:88人\n", + "55~69岁平均成绩:3.27分,人数:60人,男性:59人\n" + ] + } + ], "source": [ "nld = [[16,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,69]]\n", "\n", @@ -1377,10 +1567,33 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 49, "id": "c5bb03ca-b7ee-4564-b425-8513e1bff081", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:53:09.675597Z", + "iopub.status.busy": "2024-11-05T05:53:09.674880Z", + "iopub.status.idle": "2024-11-05T05:53:09.702379Z", + "shell.execute_reply": "2024-11-05T05:53:09.701740Z", + "shell.execute_reply.started": "2024-11-05T05:53:09.675531Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "20~24岁平均成绩:3.08分,人数:365人\n", + "25~29岁平均成绩:3.1分,人数:196人\n", + "30~34岁平均成绩:3.1分,人数:100人\n", + "35~39岁平均成绩:3.27分,人数:135人\n", + "40~44岁平均成绩:3.39分,人数:59人\n", + "45~49岁平均成绩:3.4分,人数:72人\n", + "50~54岁平均成绩:3.27分,人数:88人\n", + "55~80岁平均成绩:3.25分,人数:59人\n" + ] + } + ], "source": [ "import json\n", "\n", @@ -1415,10 +1628,33 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 50, "id": "bf333998-230c-4365-aadc-b0d1be073b39", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:53:12.871382Z", + "iopub.status.busy": "2024-11-05T05:53:12.870644Z", + "iopub.status.idle": "2024-11-05T05:53:12.898189Z", + "shell.execute_reply": "2024-11-05T05:53:12.897568Z", + "shell.execute_reply.started": "2024-11-05T05:53:12.871316Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "20~24岁平均成绩:3.21分,人数:119人\n", + "25~29岁平均成绩:3.32分,人数:73人\n", + "30~34岁平均成绩:3.32分,人数:35人\n", + "35~39岁平均成绩:3.44分,人数:26人\n", + "40~44岁平均成绩:3.4分,人数:8人\n", + "45~49岁平均成绩:3.73分,人数:24人\n", + "50~54岁平均成绩:3.71分,人数:5人\n", + "55~80岁平均成绩:4.0分,人数:1人\n" + ] + } + ], "source": [ "nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n", "\n", @@ -1451,10 +1687,35 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 51, "id": "352c6c29-8929-4210-84c5-8dbc3d5ffeee", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:53:17.234892Z", + "iopub.status.busy": "2024-11-05T05:53:17.234077Z", + "iopub.status.idle": "2024-11-05T05:53:17.258666Z", + "shell.execute_reply": "2024-11-05T05:53:17.258170Z", + "shell.execute_reply.started": "2024-11-05T05:53:17.234829Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "BMI 4.0 1364\n", + "肺活量 3.52 1364\n", + "握力 3.25 1361\n", + "坐位体前屈 2.93 1346\n", + "纵跳 3.4 1316\n", + "俯卧撑 3.65 1047\n", + "一分钟仰卧起坐 4.27 240\n", + "单脚站立 2.6 1356\n", + "选择反应时 2.88 1317\n", + "台阶指数 2.5 1286\n" + ] + } + ], "source": [ "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n", @@ -1479,10 +1740,52 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 52, "id": "97f5a1cf-341e-4b99-9549-b6a3fb165849", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T05:53:21.152478Z", + "iopub.status.busy": "2024-11-05T05:53:21.151702Z", + "iopub.status.idle": "2024-11-05T05:53:21.181419Z", + "shell.execute_reply": "2024-11-05T05:53:21.180858Z", + "shell.execute_reply.started": "2024-11-05T05:53:21.152407Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "采购中心 3.39 20\n", + "炼油三部 3.2 30\n", + "烯烃一部 3.21 156\n", + "炼油五部 3.25 73\n", + "公用工程二部 3.26 72\n", + "合成材料部 3.12 55\n", + "质管中心 3.24 56\n", + "储运一部 3.1 82\n", + "氢能制造部 3.18 59\n", + "电气中心 3.14 45\n", + "公用工程一部 3.12 81\n", + "仪表和计量中心 3.29 81\n", + "港储部 3.13 36\n", + "炼油二部 3.28 60\n", + "消防支队 3.35 25\n", + "烯烃二部 3.03 42\n", + "炼油一部 3.29 42\n", + "事务中心 3.17 35\n", + "公司机关 3.26 113\n", + "化学制品部 3.31 43\n", + "项目管理部 3.38 19\n", + "新材料研究院 3.31 15\n", + "炼油四部 3.08 27\n", + "油库中心 3.22 25\n", + "炼油六部 3.08 34\n", + "储运二部 3.12 13\n", + "炼油七部 3.25 26\n" + ] + } + ], "source": [ "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n", @@ -1514,10 +1817,52 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 54, "id": "3beaab27-ca90-4e09-b2d2-590fd7bac51d", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T06:04:56.213828Z", + "iopub.status.busy": "2024-11-05T06:04:56.213049Z", + "iopub.status.idle": "2024-11-05T06:04:56.234107Z", + "shell.execute_reply": "2024-11-05T06:04:56.233502Z", + "shell.execute_reply.started": "2024-11-05T06:04:56.213755Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "采购中心 3.22 12\n", + "炼油三部 3.09 23\n", + "烯烃一部 3.2 128\n", + "炼油五部 3.3 56\n", + "公用工程二部 3.24 57\n", + "合成材料部 3.05 44\n", + "质管中心 3.19 43\n", + "储运一部 3.06 67\n", + "氢能制造部 3.15 46\n", + "电气中心 3.13 36\n", + "公用工程一部 3.1 63\n", + "仪表和计量中心 3.23 64\n", + "港储部 3.1 28\n", + "炼油二部 3.24 49\n", + "消防支队 3.4 21\n", + "烯烃二部 2.98 35\n", + "炼油一部 3.26 36\n", + "事务中心 3.06 28\n", + "公司机关 3.22 87\n", + "化学制品部 3.26 34\n", + "项目管理部 3.31 9\n", + "新材料研究院 3.29 12\n", + "炼油四部 3.06 23\n", + "油库中心 3.19 18\n", + "炼油六部 3.08 27\n", + "储运二部 3.06 11\n", + "炼油七部 3.21 17\n" + ] + } + ], "source": [ "with open(filename,'r') as fl:\n", " dict1 = json.load(fl) \n", @@ -1530,7 +1875,7 @@ " score = 0\n", " n = 0\n", " for k, v in dict1.items():\n", - " if item == v['unit'] and v['sex'] == '女':\n", + " if item == v['unit'] and v['sex'] == '男':\n", " score = score + v['score']\n", " n = n +1 \n", " if n>0:\n", @@ -1549,21 +1894,333 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 58, "id": "a959c1b8-86fc-4fca-8595-4278135e95b8", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T06:14:31.595277Z", + "iopub.status.busy": "2024-11-05T06:14:31.594514Z", + "iopub.status.idle": "2024-11-05T06:14:31.631931Z", + "shell.execute_reply": "2024-11-05T06:14:31.631345Z", + "shell.execute_reply.started": "2024-11-05T06:14:31.595202Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "采购中心\n", + "BMI 86 20\n", + "肺活量 72 20\n", + "握力 59 20\n", + "坐位体前屈 63 20\n", + "纵跳 71 20\n", + "俯卧撑 47 12\n", + "一分钟仰卧起坐 35 8\n", + "单脚站立 47 20\n", + "选择反应时 68 20\n", + "台阶指数 62 20\n", + "炼油三部\n", + "BMI 116 30\n", + "肺活量 99 30\n", + "握力 91 30\n", + "坐位体前屈 84 30\n", + "纵跳 92 29\n", + "俯卧撑 92 22\n", + "一分钟仰卧起坐 29 7\n", + "单脚站立 78 30\n", + "选择反应时 85 29\n", + "台阶指数 86 29\n", + "烯烃一部\n", + "BMI 584 156\n", + "肺活量 547 156\n", + "握力 517 156\n", + "坐位体前屈 461 153\n", + "纵跳 541 147\n", + "俯卧撑 454 123\n", + "一分钟仰卧起坐 84 21\n", + "单脚站立 401 156\n", + "选择反应时 430 151\n", + "台阶指数 363 145\n", + "炼油五部\n", + "BMI 297 73\n", + "肺活量 261 73\n", + "握力 240 73\n", + "坐位体前屈 208 72\n", + "纵跳 265 72\n", + "俯卧撑 206 56\n", + "一分钟仰卧起坐 48 12\n", + "单脚站立 184 73\n", + "选择反应时 210 69\n", + "台阶指数 173 69\n", + "公用工程二部\n", + "BMI 296 72\n", + "肺活量 238 72\n", + "握力 243 72\n", + "坐位体前屈 212 71\n", + "纵跳 226 69\n", + "俯卧撑 204 55\n", + "一分钟仰卧起坐 54 12\n", + "单脚站立 189 72\n", + "选择反应时 206 68\n", + "台阶指数 191 68\n", + "合成材料部\n", + "BMI 217 55\n", + "肺活量 186 55\n", + "握力 178 53\n", + "坐位体前屈 149 55\n", + "纵跳 180 55\n", + "俯卧撑 164 44\n", + "一分钟仰卧起坐 43 10\n", + "单脚站立 137 55\n", + "选择反应时 146 54\n", + "台阶指数 129 55\n", + "质管中心\n", + "BMI 248 56\n", + "肺活量 197 56\n", + "握力 177 56\n", + "坐位体前屈 149 55\n", + "纵跳 172 52\n", + "俯卧撑 141 39\n", + "一分钟仰卧起坐 49 11\n", + "单脚站立 136 56\n", + "选择反应时 151 50\n", + "台阶指数 141 51\n", + "储运一部\n", + "BMI 324 82\n", + "肺活量 278 82\n", + "握力 263 82\n", + "坐位体前屈 219 80\n", + "纵跳 239 78\n", + "俯卧撑 218 64\n", + "一分钟仰卧起坐 45 10\n", + "单脚站立 201 81\n", + "选择反应时 227 81\n", + "台阶指数 209 78\n", + "氢能制造部\n", + "BMI 231 59\n", + "肺活量 214 59\n", + "握力 190 59\n", + "坐位体前屈 180 59\n", + "纵跳 188 58\n", + "俯卧撑 160 45\n", + "一分钟仰卧起坐 52 13\n", + "单脚站立 160 59\n", + "选择反应时 145 55\n", + "台阶指数 147 58\n", + "电气中心\n", + "BMI 185 45\n", + "肺活量 158 44\n", + "握力 137 45\n", + "坐位体前屈 132 44\n", + "纵跳 130 42\n", + "俯卧撑 129 36\n", + "一分钟仰卧起坐 24 6\n", + "单脚站立 109 45\n", + "选择反应时 136 44\n", + "台阶指数 92 42\n", + "公用工程一部\n", + "BMI 307 81\n", + "肺活量 286 81\n", + "握力 268 81\n", + "坐位体前屈 226 80\n", + "纵跳 262 77\n", + "俯卧撑 223 63\n", + "一分钟仰卧起坐 64 16\n", + "单脚站立 194 81\n", + "选择反应时 211 77\n", + "台阶指数 173 73\n", + "仪表和计量中心\n", + "BMI 323 81\n", + "肺活量 302 81\n", + "握力 273 81\n", + "坐位体前屈 242 79\n", + "纵跳 302 81\n", + "俯卧撑 231 63\n", + "一分钟仰卧起坐 51 12\n", + "单脚站立 221 81\n", + "选择反应时 230 79\n", + "台阶指数 186 80\n", + "港储部\n", + "BMI 142 36\n", + "肺活量 133 36\n", + "握力 119 36\n", + "坐位体前屈 100 36\n", + "纵跳 114 36\n", + "俯卧撑 98 28\n", + "一分钟仰卧起坐 15 4\n", + "单脚站立 86 36\n", + "选择反应时 94 35\n", + "台阶指数 88 33\n", + "炼油二部\n", + "BMI 250 60\n", + "肺活量 211 60\n", + "握力 196 60\n", + "坐位体前屈 169 60\n", + "纵跳 203 57\n", + "俯卧撑 184 49\n", + "一分钟仰卧起坐 47 11\n", + "单脚站立 163 60\n", + "选择反应时 183 59\n", + "台阶指数 145 58\n", + "消防支队\n", + "BMI 99 25\n", + "肺活量 81 25\n", + "握力 87 25\n", + "坐位体前屈 76 25\n", + "纵跳 92 25\n", + "俯卧撑 87 20\n", + "一分钟仰卧起坐 14 3\n", + "单脚站立 70 25\n", + "选择反应时 69 25\n", + "台阶指数 72 25\n", + "烯烃二部\n", + "BMI 154 42\n", + "肺活量 149 42\n", + "握力 133 42\n", + "坐位体前屈 114 42\n", + "纵跳 132 41\n", + "俯卧撑 115 34\n", + "一分钟仰卧起坐 32 7\n", + "单脚站立 102 42\n", + "选择反应时 105 41\n", + "台阶指数 95 41\n", + "炼油一部\n", + "BMI 176 42\n", + "肺活量 140 42\n", + "握力 141 42\n", + "坐位体前屈 127 41\n", + "纵跳 129 37\n", + "俯卧撑 133 36\n", + "一分钟仰卧起坐 16 5\n", + "单脚站立 117 42\n", + "选择反应时 116 41\n", + "台阶指数 103 36\n", + "事务中心\n", + "BMI 149 35\n", + "肺活量 115 35\n", + "握力 103 35\n", + "坐位体前屈 106 34\n", + "纵跳 105 34\n", + "俯卧撑 83 27\n", + "一分钟仰卧起坐 30 6\n", + "单脚站立 99 34\n", + "选择反应时 100 33\n", + "台阶指数 72 30\n", + "公司机关\n", + "BMI 439 113\n", + "肺活量 405 113\n", + "握力 361 113\n", + "坐位体前屈 335 112\n", + "纵跳 394 111\n", + "俯卧撑 332 86\n", + "一分钟仰卧起坐 88 19\n", + "单脚站立 297 107\n", + "选择反应时 322 107\n", + "台阶指数 232 104\n", + "化学制品部\n", + "BMI 171 43\n", + "肺活量 158 43\n", + "握力 149 43\n", + "坐位体前屈 132 42\n", + "纵跳 150 42\n", + "俯卧撑 131 34\n", + "一分钟仰卧起坐 32 7\n", + "单脚站立 104 43\n", + "选择反应时 116 42\n", + "台阶指数 114 41\n", + "项目管理部\n", + "BMI 85 19\n", + "肺活量 68 19\n", + "握力 57 19\n", + "坐位体前屈 60 19\n", + "纵跳 57 18\n", + "俯卧撑 29 7\n", + "一分钟仰卧起坐 44 10\n", + "单脚站立 57 18\n", + "选择反应时 59 19\n", + "台阶指数 46 18\n", + "新材料研究院\n", + "BMI 61 15\n", + "肺活量 56 15\n", + "握力 47 15\n", + "坐位体前屈 48 15\n", + "纵跳 56 15\n", + "俯卧撑 39 12\n", + "一分钟仰卧起坐 14 3\n", + "单脚站立 45 15\n", + "选择反应时 43 15\n", + "台阶指数 37 15\n", + "炼油四部\n", + "BMI 103 27\n", + "肺活量 83 27\n", + "握力 86 27\n", + "坐位体前屈 75 27\n", + "纵跳 77 27\n", + "俯卧撑 83 23\n", + "一分钟仰卧起坐 12 3\n", + "单脚站立 78 27\n", + "选择反应时 84 27\n", + "台阶指数 61 26\n", + "油库中心\n", + "BMI 113 25\n", + "肺活量 90 25\n", + "握力 67 23\n", + "坐位体前屈 73 25\n", + "纵跳 66 23\n", + "俯卧撑 54 15\n", + "一分钟仰卧起坐 32 7\n", + "单脚站立 70 25\n", + "选择反应时 71 24\n", + "台阶指数 50 21\n", + "炼油六部\n", + "BMI 139 33\n", + "肺活量 118 34\n", + "握力 109 34\n", + "坐位体前屈 93 33\n", + "纵跳 109 32\n", + "俯卧撑 93 27\n", + "一分钟仰卧起坐 29 7\n", + "单脚站立 78 34\n", + "选择反应时 86 33\n", + "台阶指数 67 32\n", + "储运二部\n", + "BMI 45 13\n", + "肺活量 49 13\n", + "握力 45 13\n", + "坐位体前屈 39 12\n", + "纵跳 41 13\n", + "俯卧撑 37 11\n", + "一分钟仰卧起坐 8 2\n", + "单脚站立 33 13\n", + "选择反应时 35 13\n", + "台阶指数 29 13\n", + "炼油七部\n", + "BMI 112 26\n", + "肺活量 102 26\n", + "握力 92 26\n", + "坐位体前屈 75 25\n", + "纵跳 82 25\n", + "俯卧撑 59 16\n", + "一分钟仰卧起坐 33 8\n", + "单脚站立 68 26\n", + "选择反应时 71 26\n", + "台阶指数 52 25\n" + ] + } + ], "source": [ "import json\n", "\n", "items = ['BMI','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数'] \n", - "filename = 'data/data_镇海.json'\n", + "filename = 'data/data_镇海(合并).json'\n", "with open(filename,'r') as fl:\n", " dict1 = json.load(fl)\n", "\n", - "filename = 'data/镇海体测人员.json'\n", + "filename = 'data/镇海(合并).json'\n", "with open(filename,'r') as fl:\n", - " dict2 = json.load(fl)20241021\n", + " dict2 = json.load(fl)\n", "dict3 = {}\n", "\n", "for k, v in dict1.items():\n", @@ -1594,15 +2251,57 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 57, "id": "81195537-5a43-4822-a1b9-a08b7baee05e", - "metadata": {}, - "outputs": [], + "metadata": { + "execution": { + "iopub.execute_input": "2024-11-05T06:08:58.060156Z", + "iopub.status.busy": "2024-11-05T06:08:58.059475Z", + "iopub.status.idle": "2024-11-05T06:08:58.086227Z", + "shell.execute_reply": "2024-11-05T06:08:58.085428Z", + "shell.execute_reply.started": "2024-11-05T06:08:58.060082Z" + } + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "采购中心 5 7 8 0\n", + "炼油三部 3 9 18 0\n", + "烯烃一部 31 36 74 15\n", + "炼油五部 15 22 26 10\n", + "公用工程二部 10 29 28 5\n", + "合成材料部 3 20 25 7\n", + "质管中心 8 24 17 7\n", + "储运一部 8 23 38 13\n", + "氢能制造部 10 16 27 6\n", + "电气中心 1 20 21 3\n", + "公用工程一部 12 22 34 13\n", + "仪表和计量中心 18 25 32 6\n", + "港储部 6 5 24 1\n", + "炼油二部 7 25 26 2\n", + "消防支队 6 10 7 2\n", + "烯烃二部 7 10 15 10\n", + "炼油一部 7 12 22 1\n", + "事务中心 6 10 14 5\n", + "公司机关 22 38 42 11\n", + "化学制品部 9 13 19 2\n", + "项目管理部 3 8 8 0\n", + "新材料研究院 2 8 5 0\n", + "炼油四部 3 6 14 4\n", + "油库中心 4 11 7 3\n", + "炼油六部 3 9 17 5\n", + "储运二部 1 4 7 1\n", + "炼油七部 5 9 10 2\n" + ] + } + ], "source": [ "import json\n", "\n", "items = ['优秀','良好','合格','不合格'] \n", - "filename = 'data/data_镇海.json'\n", + "filename = 'data/data_镇海(合并).json'\n", "with open(filename,'r') as fl:\n", " dict1 = json.load(fl)\n", "\n",