This commit is contained in:
512song committed 2024-12-06 23:45:13 +08:00
1 parent 9c40a2b9f7
commit 1da757e355
5 files changed
+715 -646

No files matched your search

+152 -596
View File
@@ -637,15 +637,15 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 57,
"id": "b123ee6b-85d2-4660-b226-321832a6b796",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-05T01:54:15.911722Z",
"iopub.status.busy": "2024-12-05T01:54:15.910983Z",
"iopub.status.idle": "2024-12-05T02:00:21.680493Z",
"shell.execute_reply": "2024-12-05T02:00:21.679283Z",
"shell.execute_reply.started": "2024-12-05T01:54:15.911657Z"
"iopub.execute_input": "2024-12-06T14:42:19.023726Z",
"iopub.status.busy": "2024-12-06T14:42:19.023180Z",
"iopub.status.idle": "2024-12-06T14:49:16.425361Z",
"shell.execute_reply": "2024-12-06T14:49:16.424225Z",
"shell.execute_reply.started": "2024-12-06T14:42:19.023678Z"
},
"tags": []
},
@@ -654,7 +654,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"738\n"
"757\n"
]
}
],
@@ -681,7 +681,7 @@
" \n",
" id = str(k).rjust(4,\"0\")\n",
" mydata['path'] = file_path+id+'-'+ v['name']+'.pdf'\n",
" mydata['title'] = '中国石化北海炼化有限责任公司'\n",
" mydata['title'] = '中国石化北海炼化\\n有限责任公司'\n",
" mydata['subtitle'] = v['unit']\n",
" mydata['id'] = id\n",
" mydata['name'] = v['name']\n",
@@ -708,8 +708,8 @@
" else:\n",
" mark = v[item]['成绩'].split()[0]\n",
" mydata['fits'][item] = {'mark':mark,'score':v[item]['score']}\n",
" #if len(mydata['fits']) >2 or len(mydata['surveys']) >0:\n",
" if len(mydata['fits']) >2 : \n",
" if len(mydata['fits']) >2 or len(mydata['surveys']) >0:\n",
" #if len(mydata['fits']) >2 : \n",
" list1.append(mydata)\n",
" list2.append([k,v['name']])\n",
" i+=1\n",
@@ -800,9 +800,16 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 58,
"id": "d913a531-51b3-4795-adc3-f4fc858d7401",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-06T15:20:32.535010Z",
"iopub.status.busy": "2024-12-06T15:20:32.534411Z",
"iopub.status.idle": "2024-12-06T15:20:32.583820Z",
"shell.execute_reply": "2024-12-06T15:20:32.583328Z",
"shell.execute_reply.started": "2024-12-06T15:20:32.534952Z"
},
"tags": []
},
"outputs": [],
@@ -812,12 +819,12 @@
"import glob\n",
"from pathlib import Path\n",
"\n",
"fi_path = '/home/songyi/pdf-typescript/中石化石油工程设计有限公司1'\n",
"new_path = 'file/中石化石油工程设计有限公司1'\n",
"fi_path = '/home/songyi/pdf-typescript/北海炼化2024'\n",
"new_path = 'file/北海炼化2024'\n",
"old = []\n",
"dict2 = {}\n",
"\n",
"filename = 'data/东营工程设计院2024.json'\n",
"filename = 'data/北海炼化人员2024.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"fls = glob.glob(f'{fi_path}/*.pdf')\n",
@@ -841,12 +848,27 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 59,
"id": "02319955-7fb6-4791-ae45-55b03bdadd54",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-06T15:23:36.869845Z",
"iopub.status.busy": "2024-12-06T15:23:36.869086Z",
"iopub.status.idle": "2024-12-06T15:23:36.941818Z",
"shell.execute_reply": "2024-12-06T15:23:36.941344Z",
"shell.execute_reply.started": "2024-12-06T15:23:36.869773Z"
},
"tags": []
},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ok\n"
]
}
],
"source": [
"import os,sys,shutil\n",
"import json\n",
@@ -856,7 +878,7 @@
"\n",
"fi_path = '/home/songyi/pdf-typescript/北海炼化2024'\n",
"\n",
"filename = 'data/中安联合.json'\n",
"filename = 'data/北海炼化人员2024.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"fls = glob.glob(f'{fi_path}/*.pdf')\n",
@@ -872,7 +894,7 @@
" \n",
" list1.append(list2)\n",
"\n",
"filename = 'data/中安联合体测报告明细表.xlsx'\n",
"filename = 'data/北海炼化2024年体测报告明细表.xlsx'\n",
"wb = openpyxl.Workbook()\n",
"sheet = wb.active\n",
"sheet.append(title)\n",
@@ -893,29 +915,10 @@
},
{
"cell_type": "code",
"execution_count": 25,
"execution_count": null,
"id": "c464fa11-8a0d-44e9-8af0-8c1f50263ceb",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-05T02:12:16.971166Z",
"iopub.status.busy": "2024-12-05T02:12:16.970399Z",
"iopub.status.idle": "2024-12-05T02:12:16.991930Z",
"shell.execute_reply": "2024-12-05T02:12:16.991373Z",
"shell.execute_reply.started": "2024-12-05T02:12:16.971124Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"739\n",
"518\n",
"275\n",
"809\n"
]
}
],
"metadata": {},
"outputs": [],
"source": [
"import os,sys,shutil\n",
"import json\n",
@@ -1547,26 +1550,10 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": null,
"id": "46aa847d-e1fe-45bd-85b6-e2d792ec8842",
"metadata": {
"execution": {
"iopub.execute_input": "2024-11-07T11:47:37.575532Z",
"iopub.status.busy": "2024-11-07T11:47:37.574781Z",
"iopub.status.idle": "2024-11-07T11:47:37.780926Z",
"shell.execute_reply": "2024-11-07T11:47:37.780418Z",
"shell.execute_reply.started": "2024-11-07T11:47:37.575459Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"4059\n"
]
}
],
"metadata": {},
"outputs": [],
"source": [
"import json\n",
"import openpyxl\n",
@@ -1641,29 +1628,12 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "63edd636-f034-4aa6-8575-63d5cdb84adb",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-04T15:02:47.958778Z",
"iopub.status.busy": "2024-12-04T15:02:47.958038Z",
"iopub.status.idle": "2024-12-04T15:02:47.975696Z",
"shell.execute_reply": "2024-12-04T15:02:47.974632Z",
"shell.execute_reply.started": "2024-12-04T15:02:47.958708Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"平均成绩:2.9551分,男性:598人\n",
"平均成绩:3.1705分,女性:140人\n",
"平均成绩:2.996分,总体:738人\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"\n",
@@ -1702,32 +1672,12 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "1b4a3f02-9b2e-41fc-ac6c-8163907a07f1",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-04T15:03:47.530784Z",
"iopub.status.busy": "2024-12-04T15:03:47.530057Z",
"iopub.status.idle": "2024-12-04T15:03:47.570098Z",
"shell.execute_reply": "2024-12-04T15:03:47.569570Z",
"shell.execute_reply.started": "2024-12-04T15:03:47.530717Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0~255分人数:130人,男性:116人,女性:14人\n",
"256~332分人数:368人,男性:306人,女性:62人\n",
"333~367分人数:170人,男性:125人,女性:45人\n",
"368~500分人数:70人,男性:51人,女性:19人\n",
"738\n",
"ok\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"\n",
@@ -1773,34 +1723,12 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "2d661ca6-6129-4da1-ac25-51d0156babb2",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-04T15:04:19.067670Z",
"iopub.status.busy": "2024-12-04T15:04:19.066925Z",
"iopub.status.idle": "2024-12-04T15:04:19.087808Z",
"shell.execute_reply": "2024-12-04T15:04:19.087242Z",
"shell.execute_reply.started": "2024-12-04T15:04:19.067602Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"20-24 {'不合格': 2, '良好': 6, '优秀': 0, '合格': 8}\n",
"25-29 {'良好': 11, '不合格': 2, '合格': 13, '优秀': 2}\n",
"30-34 {'合格': 8, '良好': 3, '优秀': 4, '不合格': 1}\n",
"35-39 {'优秀': 2, '良好': 7, '合格': 10, '不合格': 6}\n",
"40-44 {'优秀': 1, '良好': 4, '合格': 1, '不合格': 0}\n",
"45-49 {'合格': 20, '优秀': 5, '良好': 8, '不合格': 3}\n",
"50-54 {'合格': 2, '良好': 6, '优秀': 5, '不合格': 0}\n",
"55-80 {'优秀': 0, '合格': 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",
@@ -1840,34 +1768,12 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "fc97df37-34ff-4a02-9d26-b5d81b706e46",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-04T15:07:08.531067Z",
"iopub.status.busy": "2024-12-04T15:07:08.530357Z",
"iopub.status.idle": "2024-12-04T15:07:08.545126Z",
"shell.execute_reply": "2024-12-04T15:07:08.544536Z",
"shell.execute_reply.started": "2024-12-04T15:07:08.531002Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"20-24 {'不合格': 26, '良好': 9, '优秀': 2, '合格': 35}\n",
"25-29 {'良好': 20, '不合格': 25, '合格': 48, '优秀': 3}\n",
"30-34 {'合格': 24, '良好': 5, '优秀': 2, '不合格': 5}\n",
"35-39 {'优秀': 11, '良好': 23, '合格': 29, '不合格': 10}\n",
"40-44 {'优秀': 6, '良好': 3, '合格': 17, '不合格': 1}\n",
"45-49 {'合格': 37, '优秀': 6, '良好': 16, '不合格': 4}\n",
"50-54 {'合格': 73, '良好': 31, '优秀': 12, '不合格': 28}\n",
"55-80 {'优秀': 9, '合格': 43, '良好': 18, '不合格': 17}\n"
]
}
],
"outputs": [],
"source": [
"nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n",
"\n",
@@ -1907,34 +1813,12 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "dafb86f8-5ee0-4c87-a98f-c7ff0f631fe5",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-04T15:07:14.121761Z",
"iopub.status.busy": "2024-12-04T15:07:14.119927Z",
"iopub.status.idle": "2024-12-04T15:07:14.142357Z",
"shell.execute_reply": "2024-12-04T15:07:14.141727Z",
"shell.execute_reply.started": "2024-12-04T15:07:14.121677Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"16~24岁平均成绩:2.73分,人数:88人,男性:72人\n",
"25~29岁平均成绩:2.92分,人数:124人,男性:96人\n",
"30~34岁平均成绩:3.02分,人数:52人,男性:36人\n",
"35~39岁平均成绩:3.1分,人数:98人,男性:73人\n",
"40~44岁平均成绩:3.21分,人数:33人,男性:27人\n",
"45~49岁平均成绩:3.09分,人数:99人,男性:63人\n",
"50~54岁平均成绩:3.04分,人数:157人,男性:144人\n",
"55~69岁平均成绩:2.97分,人数:87人,男性:87人\n"
]
}
],
"outputs": [],
"source": [
"nld = [[16,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,69]]\n",
"\n",
@@ -1969,34 +1853,12 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"id": "347703a1-501b-4800-bd29-16e94f4a6793",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-04T15:10:04.572147Z",
"iopub.status.busy": "2024-12-04T15:10:04.571454Z",
"iopub.status.idle": "2024-12-04T15:10:04.596383Z",
"shell.execute_reply": "2024-12-04T15:10:04.595277Z",
"shell.execute_reply.started": "2024-12-04T15:10:04.572082Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"20~24岁平均成绩:2.68分,人数:72人\n",
"25~29岁平均成绩:2.86分,人数:96人\n",
"30~34岁平均成绩:2.94分,人数:36人\n",
"35~39岁平均成绩:3.12分,人数:73人\n",
"40~44岁平均成绩:3.15分,人数:27人\n",
"45~49岁平均成绩:3.06分,人数:63人\n",
"50~54岁平均成绩:2.98分,人数:144人\n",
"55~80岁平均成绩:2.97分,人数:87人\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"\n",
@@ -2031,34 +1893,12 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"id": "5900d1c7-2f8c-4dfa-a60e-a577fb90f22d",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-04T15:09:34.523177Z",
"iopub.status.busy": "2024-12-04T15:09:34.522550Z",
"iopub.status.idle": "2024-12-04T15:09:34.543633Z",
"shell.execute_reply": "2024-12-04T15:09:34.542960Z",
"shell.execute_reply.started": "2024-12-04T15:09:34.523123Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"20~24岁平均成绩:2.94分,人数:16人\n",
"25~29岁平均成绩:3.13分,人数:28人\n",
"30~34岁平均成绩:3.19分,人数:16人\n",
"35~39岁平均成绩:3.07分,人数:25人\n",
"40~44岁平均成绩:3.49分,人数:6人\n",
"45~49岁平均成绩:3.15分,人数:36人\n",
"50~54岁平均成绩:3.64分,人数:13人\n",
"55~80岁平均成绩:0分,人数:0人\n"
]
}
],
"outputs": [],
"source": [
"nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n",
"\n",
@@ -2091,36 +1931,12 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"id": "ad69c45d-3f62-42df-894d-47424e759029",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-04T15:10:44.614467Z",
"iopub.status.busy": "2024-12-04T15:10:44.613711Z",
"iopub.status.idle": "2024-12-04T15:10:44.636541Z",
"shell.execute_reply": "2024-12-04T15:10:44.635981Z",
"shell.execute_reply.started": "2024-12-04T15:10:44.614399Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"BMI 3.6 738\n",
"肺活量 3.38 728\n",
"握力 2.55 737\n",
"坐位体前屈 2.73 699\n",
"纵跳 2.53 692\n",
"俯卧撑 3.29 523\n",
"一分钟仰卧起坐 3.82 109\n",
"单脚站立 2.73 726\n",
"选择反应时 3.32 737\n",
"台阶指数 2.79 540\n"
]
}
],
"outputs": [],
"source": [
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
@@ -2145,45 +1961,12 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"id": "dcf152e7-bbcc-47d1-9c5f-83854db35412",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-04T15:12:44.516371Z",
"iopub.status.busy": "2024-12-04T15:12:44.515637Z",
"iopub.status.idle": "2024-12-04T15:12:44.537110Z",
"shell.execute_reply": "2024-12-04T15:12:44.536346Z",
"shell.execute_reply.started": "2024-12-04T15:12:44.516304Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"炼油二部 2.96 136\n",
"公用工程部 2.99 53\n",
"储运部 2.9 101\n",
"炼油一部 3.0 122\n",
"炼油三部 2.92 74\n",
"物资采购中心 3.17 16\n",
"科技发展部 3.0 9\n",
"设备工程部 3.1 19\n",
"检验计量中心 3.02 39\n",
"财务资产部 3.4 12\n",
"党群工作部 3.33 6\n",
"恒大化工 2.98 39\n",
"发展计划部 3.23 8\n",
"安全环保部 2.98 16\n",
"生产技术部(总调度室) 3.03 17\n",
"党委组织部(人力资源部) 3.15 12\n",
"电气仪表中心 2.94 37\n",
"综合管理部 3.21 14\n",
"本部 3.34 8\n"
]
}
],
"outputs": [],
"source": [
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
@@ -2212,44 +1995,10 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": null,
"id": "d1977ca9-bf12-4f09-ae7b-e8af9eaa82f2",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-04T15:16:38.052997Z",
"iopub.status.busy": "2024-12-04T15:16:38.052411Z",
"iopub.status.idle": "2024-12-04T15:16:38.070279Z",
"shell.execute_reply": "2024-12-04T15:16:38.069338Z",
"shell.execute_reply.started": "2024-12-04T15:16:38.052942Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"炼油二部 3.17 13\n",
"公用工程部 3.33 11\n",
"储运部 2.98 6\n",
"炼油一部 3.21 15\n",
"炼油三部 2.82 6\n",
"物资采购中心 3.05 5\n",
"科技发展部 2.67 1\n",
"设备工程部 3.72 2\n",
"检验计量中心 2.97 19\n",
"财务资产部 3.46 10\n",
"党群工作部 3.67 2\n",
"恒大化工 2.98 26\n",
"发展计划部 3.61 5\n",
"安全环保部 3.25 2\n",
"生产技术部(总调度室) 3.67 1\n",
"党委组织部(人力资源部) 3.3 7\n",
"电气仪表中心 3.28 2\n",
"综合管理部 3.42 7\n",
"本部 0 0\n"
]
}
],
"metadata": {},
"outputs": [],
"source": [
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
@@ -2281,44 +2030,10 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": null,
"id": "d507c7f7-6a91-4695-b700-5e2f77e6dea3",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-04T15:17:22.384324Z",
"iopub.status.busy": "2024-12-04T15:17:22.383584Z",
"iopub.status.idle": "2024-12-04T15:17:22.404238Z",
"shell.execute_reply": "2024-12-04T15:17:22.403084Z",
"shell.execute_reply.started": "2024-12-04T15:17:22.384258Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"炼油二部 14 29 67 26\n",
"公用工程部 8 11 25 9\n",
"储运部 8 25 42 26\n",
"炼油一部 7 27 69 19\n",
"炼油三部 5 11 43 15\n",
"物资采购中心 3 3 9 1\n",
"科技发展部 1 0 7 1\n",
"设备工程部 2 5 10 2\n",
"检验计量中心 4 11 18 6\n",
"财务资产部 3 3 5 1\n",
"党群工作部 2 1 3 0\n",
"恒大化工 3 9 20 7\n",
"发展计划部 1 3 3 1\n",
"安全环保部 1 5 7 3\n",
"生产技术部(总调度室) 2 4 9 2\n",
"党委组织部(人力资源部) 0 5 6 1\n",
"电气仪表中心 1 9 19 8\n",
"综合管理部 4 4 4 2\n",
"本部 1 5 2 0\n"
]
}
],
"metadata": {},
"outputs": [],
"source": [
"import json\n",
"\n",
@@ -2355,234 +2070,10 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": null,
"id": "90bc66cd-9f01-410e-9abc-e6f15ada293f",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-04T15:19:48.512361Z",
"iopub.status.busy": "2024-12-04T15:19:48.511640Z",
"iopub.status.idle": "2024-12-04T15:19:48.542915Z",
"shell.execute_reply": "2024-12-04T15:19:48.542354Z",
"shell.execute_reply.started": "2024-12-04T15:19:48.512295Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"炼油二部\n",
"BMI 444 136\n",
"肺活量 478 134\n",
"握力 365 136\n",
"坐位体前屈 345 130\n",
"纵跳 347 133\n",
"俯卧撑 352 106\n",
"一分钟仰卧起坐 50 12\n",
"单脚站立 356 134\n",
"选择反应时 432 136\n",
"台阶指数 284 102\n",
"公用工程部\n",
"BMI 199 53\n",
"肺活量 190 53\n",
"握力 133 53\n",
"坐位体前屈 138 51\n",
"纵跳 127 52\n",
"俯卧撑 120 39\n",
"一分钟仰卧起坐 33 9\n",
"单脚站立 134 53\n",
"选择反应时 186 53\n",
"台阶指数 101 38\n",
"储运部\n",
"BMI 351 101\n",
"肺活量 321 99\n",
"握力 281 101\n",
"坐位体前屈 245 91\n",
"纵跳 220 91\n",
"俯卧撑 238 80\n",
"一分钟仰卧起坐 10 4\n",
"单脚站立 237 97\n",
"选择反应时 324 100\n",
"台阶指数 163 57\n",
"炼油一部\n",
"BMI 408 122\n",
"肺活量 414 121\n",
"握力 313 122\n",
"坐位体前屈 329 117\n",
"纵跳 298 115\n",
"俯卧撑 327 97\n",
"一分钟仰卧起坐 40 10\n",
"单脚站立 336 120\n",
"选择反应时 393 122\n",
"台阶指数 275 97\n",
"炼油三部\n",
"BMI 262 74\n",
"肺活量 246 72\n",
"握力 186 74\n",
"坐位体前屈 188 72\n",
"纵跳 169 70\n",
"俯卧撑 206 63\n",
"一分钟仰卧起坐 15 5\n",
"单脚站立 185 73\n",
"选择反应时 217 74\n",
"台阶指数 183 59\n",
"物资采购中心\n",
"BMI 60 16\n",
"肺活量 50 16\n",
"握力 41 16\n",
"坐位体前屈 54 16\n",
"纵跳 45 16\n",
"俯卧撑 44 11\n",
"一分钟仰卧起坐 21 5\n",
"单脚站立 44 16\n",
"选择反应时 55 16\n",
"台阶指数 36 14\n",
"科技发展部\n",
"BMI 31 9\n",
"肺活量 30 9\n",
"握力 23 9\n",
"坐位体前屈 21 9\n",
"纵跳 26 9\n",
"俯卧撑 19 7\n",
"一分钟仰卧起坐 3 1\n",
"单脚站立 22 9\n",
"选择反应时 38 9\n",
"台阶指数 25 8\n",
"设备工程部\n",
"BMI 87 19\n",
"肺活量 63 19\n",
"握力 45 19\n",
"坐位体前屈 49 18\n",
"纵跳 45 18\n",
"俯卧撑 50 14\n",
"一分钟仰卧起坐 9 2\n",
"单脚站立 54 19\n",
"选择反应时 64 19\n",
"台阶指数 32 13\n",
"检验计量中心\n",
"BMI 153 39\n",
"肺活量 124 39\n",
"握力 80 38\n",
"坐位体前屈 109 35\n",
"纵跳 68 32\n",
"俯卧撑 50 14\n",
"一分钟仰卧起坐 48 13\n",
"单脚站立 111 37\n",
"选择反应时 130 39\n",
"台阶指数 61 23\n",
"财务资产部\n",
"BMI 50 12\n",
"肺活量 44 12\n",
"握力 30 12\n",
"坐位体前屈 33 11\n",
"纵跳 34 12\n",
"俯卧撑 7 2\n",
"一分钟仰卧起坐 22 6\n",
"单脚站立 51 12\n",
"选择反应时 42 12\n",
"台阶指数 16 6\n",
"党群工作部\n",
"BMI 28 6\n",
"肺活量 16 6\n",
"握力 14 6\n",
"坐位体前屈 21 6\n",
"纵跳 17 6\n",
"俯卧撑 15 4\n",
"一分钟仰卧起坐 10 2\n",
"单脚站立 21 6\n",
"选择反应时 21 6\n",
"台阶指数 17 6\n",
"恒大化工\n",
"BMI 157 39\n",
"肺活量 121 38\n",
"握力 89 39\n",
"坐位体前屈 87 35\n",
"纵跳 91 34\n",
"俯卧撑 35 10\n",
"一分钟仰卧起坐 69 19\n",
"单脚站立 105 39\n",
"选择反应时 121 39\n",
"台阶指数 86 29\n",
"发展计划部\n",
"BMI 34 8\n",
"肺活量 24 8\n",
"握力 18 8\n",
"坐位体前屈 24 8\n",
"纵跳 21 8\n",
"俯卧撑 6 3\n",
"一分钟仰卧起坐 22 5\n",
"单脚站立 29 8\n",
"选择反应时 30 8\n",
"台阶指数 18 6\n",
"安全环保部\n",
"BMI 50 16\n",
"肺活量 49 15\n",
"握力 43 16\n",
"坐位体前屈 47 16\n",
"纵跳 41 16\n",
"俯卧撑 38 12\n",
"一分钟仰卧起坐 7 2\n",
"单脚站立 39 16\n",
"选择反应时 62 16\n",
"台阶指数 36 13\n",
"生产技术部(总调度室)\n",
"BMI 63 17\n",
"肺活量 56 17\n",
"握力 46 17\n",
"坐位体前屈 43 17\n",
"纵跳 37 16\n",
"俯卧撑 44 13\n",
"一分钟仰卧起坐 5 1\n",
"单脚站立 54 17\n",
"选择反应时 62 17\n",
"台阶指数 39 15\n",
"党委组织部(人力资源部)\n",
"BMI 44 12\n",
"肺活量 39 12\n",
"握力 29 12\n",
"坐位体前屈 31 11\n",
"纵跳 23 9\n",
"俯卧撑 17 5\n",
"一分钟仰卧起坐 24 6\n",
"单脚站立 36 11\n",
"选择反应时 47 12\n",
"台阶指数 23 9\n",
"电气仪表中心\n",
"BMI 145 37\n",
"肺活量 107 36\n",
"握力 89 37\n",
"坐位体前屈 86 35\n",
"纵跳 92 35\n",
"俯卧撑 106 30\n",
"一分钟仰卧起坐 9 2\n",
"单脚站立 92 37\n",
"选择反应时 133 37\n",
"台阶指数 64 28\n",
"综合管理部\n",
"BMI 56 14\n",
"肺活量 49 14\n",
"握力 31 14\n",
"坐位体前屈 40 13\n",
"纵跳 29 12\n",
"俯卧撑 14 5\n",
"一分钟仰卧起坐 19 5\n",
"单脚站立 47 14\n",
"选择反应时 57 14\n",
"台阶指数 31 10\n",
"本部\n",
"BMI 32 8\n",
"肺活量 36 8\n",
"握力 20 8\n",
"坐位体前屈 18 8\n",
"纵跳 22 8\n",
"俯卧撑 34 8\n",
"一分钟仰卧起坐 0 0\n",
"单脚站立 27 8\n",
"选择反应时 30 8\n",
"台阶指数 19 7\n"
]
}
],
"metadata": {},
"outputs": [],
"source": [
"import json\n",
"\n",
@@ -2774,7 +2265,7 @@
"source": [
"import openpyxl\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",
"i = 1\n",
@@ -2800,7 +2291,7 @@
" list3.append(item)\n",
" list2.append(list3)\n",
"print(list2)\n",
"filename = 'data/东营工程设计院中医情况明细表.xlsx'\n",
"filename = 'data/北海炼化中医情况明细表2024.xlsx'\n",
"wb = openpyxl.Workbook()\n",
"sheet = wb.active\n",
"\n",
@@ -2821,12 +2312,27 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 50,
"id": "ad3078ac-ae53-4bb4-95bd-387631092bf1",
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-06T14:12:43.778020Z",
"iopub.status.busy": "2024-12-06T14:12:43.777211Z",
"iopub.status.idle": "2024-12-06T14:12:43.913724Z",
"shell.execute_reply": "2024-12-06T14:12:43.913244Z",
"shell.execute_reply.started": "2024-12-06T14:12:43.777944Z"
},
"tags": []
},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ok\n"
]
}
],
"source": [
"list2 = ['成就感','愉快心境','放松程度','压力应对','体力充沛','情感充沛度']\n",
"list3 = [[5,7],[7,4],[7,4],[7,4],[8,1],[6,1]]\n",
@@ -2838,11 +2344,13 @@
" 5, 5, 5, 5, 5, 5, 5, 5,\n",
" 6, 6, 6, 6, 6, 6\n",
" ]\n",
"filename = 'data/result_青海all_2.json'\n",
"filename = 'data/result_北海炼化2024.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"list4 = []\n",
"for k, v in dict1.items():\n",
" if 'psy' in v.keys():\n",
" list5 = []\n",
" psy=v['psy']\n",
" for i in range(26,40):\n",
" new_valve = psy[i]-1\n",
@@ -2854,11 +2362,21 @@
" dict3.setdefault(item,0)\n",
" dict3[item] +=psy[i]\n",
" i+=1\n",
" print(dict3)\n",
" print(k)\n",
" #print(dict3)\n",
" list5.append(k)\n",
" for i in range(0,6):\n",
" score = int(dict3[i+1]/list3[i][0]/list3[i][1]*100)\n",
" print(list2[i],score)"
" list5.append(score)\n",
" list4.append(list5)\n",
"filename = 'data/北海炼化心理情况明细表2024.xlsx'\n",
"wb = openpyxl.Workbook()\n",
"sheet = wb.active\n",
"\n",
"for row in list4:\n",
" sheet.append(row)\n",
" \n",
"wb.save(filename)\n",
"print('ok') "
]
},
{
@@ -2871,25 +2389,63 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 56,
"id": "122f19fb-3531-4074-94e4-e2afdb8af51a",
"metadata": {},
"outputs": [],
"metadata": {
"execution": {
"iopub.execute_input": "2024-12-06T14:23:42.730508Z",
"iopub.status.busy": "2024-12-06T14:23:42.729973Z",
"iopub.status.idle": "2024-12-06T14:23:42.794427Z",
"shell.execute_reply": "2024-12-06T14:23:42.793835Z",
"shell.execute_reply.started": "2024-12-06T14:23:42.730459Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ok\n"
]
}
],
"source": [
"list4 = ['颈椎','胸椎','腰椎','骶尾椎']\n",
"list5 = [[0,10,10],[10,17,7],[17,24,6],[24,26,2]]\n",
"filename = 'data/result_青海all_2.json'\n",
"filename = 'data/result_北海炼化2024.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
" dict1 = json.load(fl)\n",
"list6 = []\n",
"for k, v in dict1.items():\n",
" if 'spine' in v.keys():\n",
" list7 = []\n",
" spine = v['spine']\n",
" list7.append(k)\n",
" for i in range(0,4):\n",
" score = 0\n",
" for ii in range(list5[i][0],list5[i][1]):\n",
" score+= spine[ii]\n",
" print(k,list4[i],int(score/list5[i][2]*100)-100)"
" #print(k,list4[i],int(score/list5[i][2]*100)-100)\n",
" list7.append(int(score/list5[i][2]*100)-100)\n",
" list6.append(list7)\n",
"filename = 'data/北海炼化脊柱情况明细表2024.xlsx'\n",
"wb = openpyxl.Workbook()\n",
"sheet = wb.active\n",
"\n",
"for row in list6:\n",
" sheet.append(row)\n",
" \n",
"wb.save(filename)\n",
"print('ok') "
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "5912a87a-7b93-4b79-b708-dd23032e97ae",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {