This commit is contained in:
512song committed 2023-05-25 19:17:38 +08:00
1 parent 91ae3fce79
commit 8242dc00aa
5 files changed
+745 -478

No files matched your search

+146 -434
View File
@@ -10,27 +10,12 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "9bd78072-29e5-4c98-8bbe-97f525cf9e4a",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T00:37:19.185801Z",
"iopub.status.busy": "2023-05-16T00:37:19.185377Z",
"iopub.status.idle": "2023-05-16T00:37:20.015287Z",
"shell.execute_reply": "2023-05-16T00:37:20.014538Z",
"shell.execute_reply.started": "2023-05-16T00:37:19.185772Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ok\n"
]
}
],
"outputs": [],
"source": [
"import openpyxl\n",
"import json\n",
@@ -71,28 +56,12 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": null,
"id": "dd3c65ea-cc8a-4f1b-8698-d1799f99e101",
"metadata": {
"execution": {
"iopub.execute_input": "2023-04-27T07:07:34.179338Z",
"iopub.status.busy": "2023-04-27T07:07:34.178517Z",
"iopub.status.idle": "2023-04-27T07:07:34.222956Z",
"shell.execute_reply": "2023-04-27T07:07:34.221926Z",
"shell.execute_reply.started": "2023-04-27T07:07:34.179297Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"118\n",
"ok\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"import time\n",
@@ -150,16 +119,9 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": null,
"id": "97d86ce2-6664-41a1-89d2-ddaa0611bac1",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-05T13:31:23.049611Z",
"iopub.status.busy": "2023-05-05T13:31:23.048757Z",
"iopub.status.idle": "2023-05-05T13:31:23.590103Z",
"shell.execute_reply": "2023-05-05T13:31:23.589419Z",
"shell.execute_reply.started": "2023-05-05T13:31:23.049566Z"
},
"tags": []
},
"outputs": [],
@@ -213,28 +175,12 @@
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": null,
"id": "e2b68cb1-3a6f-4b51-afbd-d6c9634348b1",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-05T13:30:29.397704Z",
"iopub.status.busy": "2023-05-05T13:30:29.396865Z",
"iopub.status.idle": "2023-05-05T13:30:29.654357Z",
"shell.execute_reply": "2023-05-05T13:30:29.653607Z",
"shell.execute_reply.started": "2023-05-05T13:30:29.397657Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"2254\n",
"ok\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"import time\n",
@@ -292,16 +238,9 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": null,
"id": "29ed0a03-72e1-4bee-8d00-95555f129d93",
"metadata": {
"execution": {
"iopub.execute_input": "2023-04-27T07:11:19.132911Z",
"iopub.status.busy": "2023-04-27T07:11:19.132425Z",
"iopub.status.idle": "2023-04-27T07:11:19.660183Z",
"shell.execute_reply": "2023-04-27T07:11:19.659444Z",
"shell.execute_reply.started": "2023-04-27T07:11:19.132880Z"
},
"tags": []
},
"outputs": [],
@@ -355,27 +294,12 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": null,
"id": "57b22a08-554b-4b23-b98c-002b4608729f",
"metadata": {
"execution": {
"iopub.execute_input": "2023-04-26T09:42:34.825177Z",
"iopub.status.busy": "2023-04-26T09:42:34.824747Z",
"iopub.status.idle": "2023-04-26T09:42:34.875587Z",
"shell.execute_reply": "2023-04-26T09:42:34.874720Z",
"shell.execute_reply.started": "2023-04-26T09:42:34.825140Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"{'综合办公室(党委办公室)': 19, '销运管理部': 41, '企业管理部(法律事务部)': 12, '合资运行部': 27, '消防支队': 39, '设备工程部': 44, '党群文化部(宣传工团)': 9, '检验计量中心': 180, '发展计划部计划组': 11, '物资采购中心': 52, '炼油运行一部': 112, '审计管理部': 6, '发展计划部发展规划组': 12, '财务管理部': 18, '生产技术部': 35, '党委组织部(资源管理部)': 16, '安全环保部': 26, '储运运行部': 151, '化工运行部': 267, '信息中心': 18, '热电运行部': 92, '炼油运行三部': 127, '行政事务中心': 45, '电气仪表中心': 196, '炼油运行五部': 120, '水务运行部': 133, '编组站': 49, '炼油运行二部': 113, '炼油运行四部': 168, '纪委(监督部)': 2}\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"import openpyxl\n",
@@ -414,16 +338,9 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": null,
"id": "0001a577-3d89-4e3d-be07-51cc74e3640f",
"metadata": {
"execution": {
"iopub.execute_input": "2023-04-26T09:39:12.083561Z",
"iopub.status.busy": "2023-04-26T09:39:12.083234Z",
"iopub.status.idle": "2023-04-26T09:39:12.148788Z",
"shell.execute_reply": "2023-04-26T09:39:12.147956Z",
"shell.execute_reply.started": "2023-04-26T09:39:12.083534Z"
},
"tags": []
},
"outputs": [],
@@ -461,27 +378,12 @@
},
{
"cell_type": "code",
"execution_count": 91,
"execution_count": null,
"id": "e85c1be2-7859-4b7d-8f67-a9ad12d167d4",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T14:44:53.635480Z",
"iopub.status.busy": "2023-05-16T14:44:53.634628Z",
"iopub.status.idle": "2023-05-16T14:44:53.695874Z",
"shell.execute_reply": "2023-05-16T14:44:53.694856Z",
"shell.execute_reply.started": "2023-05-16T14:44:53.635438Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ok\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"filename = 'data/result_石家庄.json'\n",
@@ -497,6 +399,112 @@
" "
]
},
{
"cell_type": "markdown",
"id": "762b7b9d-e4ee-4722-909f-aa8331168b0b",
"metadata": {},
"source": [
"## 报告按部门分类更名"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ce2f56f9-bd85-436f-af14-844c94fa7e86",
"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/2023-04-30'\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": "aa655c35-1765-4a62-aa07-a6b0e7d41c6d",
"metadata": {},
"source": [
"## 生成电子文件明细表"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "0f049372-de7c-42fd-8ee3-618a894fbabc",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-23T07:20:54.552740Z",
"iopub.status.busy": "2023-05-23T07:20:54.551892Z",
"iopub.status.idle": "2023-05-23T07:20:54.727460Z",
"shell.execute_reply": "2023-05-23T07:20:54.726743Z",
"shell.execute_reply.started": "2023-05-23T07:20:54.552699Z"
},
"tags": []
},
"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/2023-04-30'\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": "3a3ae88b-a59b-4403-9c98-685afe1f5268",
@@ -515,30 +523,12 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": null,
"id": "c9e4f67a-a34d-4c81-9ed7-9099d3f283f4",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T06:42:46.952331Z",
"iopub.status.busy": "2023-05-16T06:42:46.951922Z",
"iopub.status.idle": "2023-05-16T06:42:47.188427Z",
"shell.execute_reply": "2023-05-16T06:42:47.187703Z",
"shell.execute_reply.started": "2023-05-16T06:42:46.952303Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"2253\n",
"['988', '2088', '2199', '1112', '2192', '523', '584', '170', '89', '1974', '1181', '1926', '846', '850', '2324', '2098', '2024', '2083', '1329', '1237']\n",
"2233\n",
"ok\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"import time\n",
@@ -607,38 +597,12 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": null,
"id": "3a8f7e29-aff1-4a5b-b31d-1c47aaf1e2fa",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T01:34:43.883914Z",
"iopub.status.busy": "2023-05-16T01:34:43.883060Z",
"iopub.status.idle": "2023-05-16T01:34:43.990826Z",
"shell.execute_reply": "2023-05-16T01:34:43.989773Z",
"shell.execute_reply.started": "2023-05-16T01:34:43.883871Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"2388 {'name': '任宁', 'unit': '化工运行部', 'sex': '男', 'birth': '1982-01-16 00:00:00', '肺活量': {'成绩': '3292.0 毫升', '得分': '3'}, '选择反应时': {'成绩': '0.56 秒', '得分': '3'}, '握力': {'成绩': '41.6 千克', '得分': '2'}} \n",
"\n",
"986 {'name': '左少卿', 'unit': '炼油运行一部', 'sex': '男', 'birth': '1990-1-1', '肺活量': {'成绩': '2106.0 毫升', '得分': '0'}, '选择反应时': {'成绩': '0.665 秒', '得分': '1'}, '握力': {'成绩': '45.2 千克', '得分': '3'}} \n",
"\n",
"2053 {'name': '韩海涛', 'unit': '水务运行部', 'sex': '男', 'birth': '1971-2-1', '肺活量': {'成绩': '2414.0 毫升', '得分': '2'}, '握力': {'成绩': '38.8 千克', '得分': '2'}, '选择反应时': {'成绩': '0.591 秒', '得分': '3'}} \n",
"\n",
"2356 {'name': '张义生', 'unit': '编组站', 'sex': '男', 'birth': '1981-7-1', '肺活量': {'成绩': '1904.0 毫升', '得分': '0'}, '握力': {'成绩': '39.8 千克', '得分': '2'}, '选择反应时': {'成绩': '0.553 秒', '得分': '3'}} \n",
"\n",
"1974 {'name': '鲍英杰', 'unit': '热电运行部', 'sex': '男', 'birth': '1979-8-1', '肺活量': {'成绩': '4006.0 毫升', '得分': '4'}} \n",
"\n",
"1987 {'name': '贾宁', 'unit': '热电运行部', 'sex': '男', 'birth': '1979-1-1', '握力': {'成绩': '46.3 千克', '得分': '3'}, '单脚站立': {'成绩': '4.2 秒', '得分': '2'}, '选择反应时': {'成绩': '0.592 秒', '得分': '2'}} \n",
"\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"import time\n",
@@ -671,27 +635,12 @@
},
{
"cell_type": "code",
"execution_count": 49,
"execution_count": null,
"id": "70a69705-908f-4c77-948c-c5c781707af5",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T07:18:56.549625Z",
"iopub.status.busy": "2023-05-16T07:18:56.548729Z",
"iopub.status.idle": "2023-05-16T07:18:56.718501Z",
"shell.execute_reply": "2023-05-16T07:18:56.717607Z",
"shell.execute_reply.started": "2023-05-16T07:18:56.549584Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ok\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"import datetime\n",
@@ -763,31 +712,12 @@
},
{
"cell_type": "code",
"execution_count": 55,
"execution_count": null,
"id": "69b5f5e5-04e4-4509-8518-b7fc54cd4e45",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T07:57:17.722569Z",
"iopub.status.busy": "2023-05-16T07:57:17.722163Z",
"iopub.status.idle": "2023-05-16T07:57:17.883835Z",
"shell.execute_reply": "2023-05-16T07:57:17.883079Z",
"shell.execute_reply.started": "2023-05-16T07:57:17.722541Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0~255分人数:779人,男性:678人,女性:101人\n",
"256~332分人数:1009人,男性:786人,女性:223人\n",
"333~367分人数:316人,男性:189人,女性:127人\n",
"368~500分人数:129人,男性:57人,女性:72人\n",
"ok\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"\n",
@@ -831,35 +761,12 @@
},
{
"cell_type": "code",
"execution_count": 57,
"execution_count": null,
"id": "cd27296f-2412-4a77-8b74-676c7d0efb30",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T10:12:11.824773Z",
"iopub.status.busy": "2023-05-16T10:12:11.823933Z",
"iopub.status.idle": "2023-05-16T10:12:11.901112Z",
"shell.execute_reply": "2023-05-16T10:12:11.900078Z",
"shell.execute_reply.started": "2023-05-16T10:12:11.824732Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"20~24岁平均成绩:2.48分,人数:107人,男性:94人\n",
"25~29岁平均成绩:2.54分,人数:84人,男性:54人\n",
"30~34岁平均成绩:2.69分,人数:204人,男性:159人\n",
"35~39岁平均成绩:2.78分,人数:213人,男性:166人\n",
"40~44岁平均成绩:2.79分,人数:330人,男性:254人\n",
"45~49岁平均成绩:2.84分,人数:449人,男性:278人\n",
"50~54岁平均成绩:2.81分,人数:532人,男性:402人\n",
"55~59岁平均成绩:2.6分,人数:293人,男性:282人\n",
"60~69岁平均成绩:2.5分,人数:21人,男性:21人\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"\n",
@@ -886,35 +793,12 @@
},
{
"cell_type": "code",
"execution_count": 87,
"execution_count": null,
"id": "5dbdf7cf-9014-448a-ba9e-0aea8afbdd6f",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T12:45:45.673845Z",
"iopub.status.busy": "2023-05-16T12:45:45.673313Z",
"iopub.status.idle": "2023-05-16T12:45:45.751891Z",
"shell.execute_reply": "2023-05-16T12:45:45.750835Z",
"shell.execute_reply.started": "2023-05-16T12:45:45.673803Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"20~24岁平均成绩:2.46分,人数:94人\n",
"25~29岁平均成绩:2.36分,人数:54人\n",
"30~34岁平均成绩:2.58分,人数:159人\n",
"35~39岁平均成绩:2.7分,人数:166人\n",
"40~44岁平均成绩:2.71分,人数:254人\n",
"45~49岁平均成绩:2.71分,人数:278人\n",
"50~54岁平均成绩:2.69分,人数:402人\n",
"55~59岁平均成绩:2.59分,人数:282人\n",
"60~69岁平均成绩:2.5分,人数:21人\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"\n",
@@ -940,35 +824,12 @@
},
{
"cell_type": "code",
"execution_count": 89,
"execution_count": null,
"id": "cfbb33c5-6740-4226-a792-9ef32e32479e",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T12:47:14.940870Z",
"iopub.status.busy": "2023-05-16T12:47:14.940032Z",
"iopub.status.idle": "2023-05-16T12:47:15.016945Z",
"shell.execute_reply": "2023-05-16T12:47:15.015912Z",
"shell.execute_reply.started": "2023-05-16T12:47:14.940827Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"20~24岁平均成绩:2.41分,人数:13人\n",
"25~29岁平均成绩:2.77分,人数:30人\n",
"30~34岁平均成绩:3.02分,人数:45人\n",
"35~39岁平均成绩:2.99分,人数:47人\n",
"40~44岁平均成绩:3.03分,人数:76人\n",
"45~49岁平均成绩:3.02分,人数:171人\n",
"50~54岁平均成绩:3.18分,人数:130人\n",
"55~59岁平均成绩:2.61分,人数:11人\n",
"60~69岁平均成绩:0.0分,人数:0人\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,59],[60,69]]\n",
@@ -1001,16 +862,9 @@
},
{
"cell_type": "code",
"execution_count": 71,
"execution_count": null,
"id": "fb5ccc15-b5bb-4379-88fb-acd8abbe48b6",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T11:00:12.386346Z",
"iopub.status.busy": "2023-05-16T11:00:12.385863Z",
"iopub.status.idle": "2023-05-16T11:00:12.736993Z",
"shell.execute_reply": "2023-05-16T11:00:12.736288Z",
"shell.execute_reply.started": "2023-05-16T11:00:12.386313Z"
},
"tags": []
},
"outputs": [],
@@ -1043,29 +897,12 @@
},
{
"cell_type": "code",
"execution_count": 77,
"execution_count": null,
"id": "41714148-5130-4c83-805f-bb98dbb96dd6",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T11:14:05.569248Z",
"iopub.status.busy": "2023-05-16T11:14:05.568377Z",
"iopub.status.idle": "2023-05-16T11:14:05.634577Z",
"shell.execute_reply": "2023-05-16T11:14:05.633521Z",
"shell.execute_reply.started": "2023-05-16T11:14:05.569202Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"平均成绩:2.6583分,男性:1710人\n",
"平均成绩:3.064分,女性:523人\n",
"平均成绩:2.7533分,女性:2233人\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"\n",
@@ -1104,31 +941,12 @@
},
{
"cell_type": "code",
"execution_count": 80,
"execution_count": null,
"id": "de6fbd5b-2361-4207-8bf0-08652148b729",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T11:29:57.182599Z",
"iopub.status.busy": "2023-05-16T11:29:57.182200Z",
"iopub.status.idle": "2023-05-16T11:29:57.360092Z",
"shell.execute_reply": "2023-05-16T11:29:57.359361Z",
"shell.execute_reply.started": "2023-05-16T11:29:57.182571Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0~255分人数:779人,男性:678人,女性:101人\n",
"256~332分人数:1009人,男性:786人,女性:223人\n",
"333~367分人数:316人,男性:189人,女性:127人\n",
"368~500分人数:129人,男性:57人,女性:72人\n",
"ok\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"\n",
@@ -1172,35 +990,12 @@
},
{
"cell_type": "code",
"execution_count": 83,
"execution_count": null,
"id": "eae7e34f-df88-4d46-bdb2-9f6bf4cfd357",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T11:52:33.551057Z",
"iopub.status.busy": "2023-05-16T11:52:33.550217Z",
"iopub.status.idle": "2023-05-16T11:52:33.628918Z",
"shell.execute_reply": "2023-05-16T11:52:33.627848Z",
"shell.execute_reply.started": "2023-05-16T11:52:33.551014Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"20-24 {'不合格': 4, '合格': 9, '良好': 0}\n",
"25-29 {'合格': 13, '优秀': 2, '不合格': 9, '良好': 6}\n",
"30-34 {'不合格': 8, '良好': 13, '合格': 20, '优秀': 4}\n",
"35-39 {'合格': 20, '良好': 13, '不合格': 9, '优秀': 5}\n",
"40-44 {'合格': 31, '不合格': 16, '良好': 17, '优秀': 12}\n",
"45-49 {'优秀': 20, '合格': 67, '良好': 46, '不合格': 38}\n",
"50-54 {'合格': 57, '不合格': 14, '良好': 30, '优秀': 29}\n",
"55-59 {'合格': 6, '不合格': 3, '优秀': 0, '良好': 2}\n",
"60-69 {'合格': 0, '优秀': 0, '不合格': 0, '良好': 0}\n"
]
}
],
"outputs": [],
"source": [
"nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,59],[60,69]]\n",
"filename = 'data/result_石家庄.json'\n",
@@ -1240,56 +1035,12 @@
},
{
"cell_type": "code",
"execution_count": 84,
"execution_count": null,
"id": "33bfec2f-3f0c-40b3-81f6-cbbc4a0ce4b4",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T11:57:36.714514Z",
"iopub.status.busy": "2023-05-16T11:57:36.713654Z",
"iopub.status.idle": "2023-05-16T11:57:36.798934Z",
"shell.execute_reply": "2023-05-16T11:57:36.797944Z",
"shell.execute_reply.started": "2023-05-16T11:57:36.714470Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"综合办公室(党委办公室) 3.06 22\n",
"销运管理部 2.99 45\n",
"企业管理部(法律事务部) 2.84 12\n",
"合资运行部 2.9 27\n",
"消防支队 2.98 43\n",
"设备工程部 3.0 44\n",
"党群文化部(宣传工团) 2.98 10\n",
"检验计量中心 2.86 185\n",
"发展计划部计划组 3.03 12\n",
"物资采购中心 2.93 55\n",
"炼油运行一部 2.6 112\n",
"审计管理部 2.93 6\n",
"发展计划部发展规划组 2.99 13\n",
"财务管理部 3.03 17\n",
"生产技术部 2.85 37\n",
"党委组织部(资源管理部) 3.24 16\n",
"安全环保部 3.15 26\n",
"储运运行部 2.64 160\n",
"化工运行部 2.74 269\n",
"信息中心 2.95 17\n",
"电气仪表中心 2.86 226\n",
"热电运行部 2.5 91\n",
"炼油运行三部 2.58 140\n",
"行政事务中心 2.49 47\n",
"炼油运行五部 2.78 124\n",
"水务运行部 2.75 135\n",
"编组站 2.44 50\n",
"炼油运行二部 2.68 113\n",
"炼油运行四部 2.67 176\n",
"纪委(监督部) 3.0 3\n"
]
}
],
"outputs": [],
"source": [
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
@@ -1319,36 +1070,12 @@
},
{
"cell_type": "code",
"execution_count": 85,
"execution_count": null,
"id": "1626c578-b38d-435b-8c08-45588cd44096",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T12:15:49.551456Z",
"iopub.status.busy": "2023-05-16T12:15:49.550669Z",
"iopub.status.idle": "2023-05-16T12:15:49.633599Z",
"shell.execute_reply": "2023-05-16T12:15:49.632661Z",
"shell.execute_reply.started": "2023-05-16T12:15:49.551420Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"体重 3.49\n",
"肺活量 3.26\n",
"握力 2.54\n",
"坐位体前屈 3.06\n",
"纵跳 1.9\n",
"俯卧撑 2.39\n",
"一分钟仰卧起坐 3.9\n",
"单脚站立 2.23\n",
"选择反应时 2.9\n",
"台阶指数 3.01\n"
]
}
],
"outputs": [],
"source": [
"filename = 'data/result_石家庄.json'\n",
"with open(filename,'r') as fl:\n",
@@ -1366,27 +1093,12 @@
},
{
"cell_type": "code",
"execution_count": 90,
"execution_count": null,
"id": "25b5f474-1f2e-4d6b-a6d7-2c0427a9bcbf",
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-16T14:14:45.541203Z",
"iopub.status.busy": "2023-05-16T14:14:45.540306Z",
"iopub.status.idle": "2023-05-16T14:14:45.551035Z",
"shell.execute_reply": "2023-05-16T14:14:45.549704Z",
"shell.execute_reply.started": "2023-05-16T14:14:45.541147Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"{'1': {'name': '齐新', 'phone': '13810412119'}, '2': {'name': '代盼盼', 'phone': '18811016592'}, '7': {'name': '陈建侨', 'phone': '18518668138'}, '8': {'name': '孟琳', 'phone': '13810582314'}, '15': {'name': '赵文静', 'phone': '18612218066'}, '16': {'name': '高艳丽', 'phone': '17746578620'}, '17': {'name': '魏腾飞', 'phone': '18519094064'}, '19': {'name': '杨爽', 'phone': '13911804937'}, '20': {'name': '杨静', 'phone': '15201222908'}, '21': {'name': '王京亚', 'phone': '15210034201'}, '22': {'name': '张笑寒', 'phone': '13811282007'}, '23': {'name': '周海苗', 'phone': '15811323860'}, '24': {'name': '胡颖', 'phone': '15901552680'}, '25': {'name': '孙鑫', 'phone': '15810028607'}, '26': {'name': '徐栋刚', 'phone': '13611378746'}, '27': {'name': '屈俊英', 'phone': '15321996557'}, '28': {'name': '侯然', 'phone': '15811321170'}, '29': {'name': '高梦珊', 'phone': '18310115505'}, '30': {'name': '王璐', 'phone': '18210908699'}, '31': {'name': '赵晨阳', 'phone': '13811750045'}, '32': {'name': '张子娣', 'phone': '13811679953'}, '33': {'name': '张昊翔', 'phone': '13699269376'}, '34': {'name': '霍东林', 'phone': '13701385970'}, '37': {'name': '刘鑫', 'phone': '13120475746'}, '39': {'name': '吴家硕', 'phone': '17600977328'}, '40': {'name': '田征', 'phone': '13552876727'}, '41': {'name': '张静瑶', 'phone': '13681188042'}, '42': {'name': '周维', 'phone': '13683093209'}, '43': {'name': '王芳', 'phone': '13439355291'}, '44': {'name': '刘静', 'phone': '13671067523'}, '45': {'name': '张翠萍', 'phone': '13426307538'}, '46': {'name': '郭晏辰', 'phone': '13522701405'}, '49': {'name': '王亚峰', 'phone': '13691445507'}, '50': {'name': '杨静', 'phone': '13436666818'}, '51': {'name': '刘海云', 'phone': '15011151011'}, '53': {'name': '李丽', 'phone': '13521299700'}, '54': {'name': '余华国', 'phone': '13611383112'}, '58': {'name': '叶红', 'phone': '13699107409'}, '59': {'name': '杨雪', 'phone': '13581675022'}, '60': {'name': '胡宇翔', 'phone': '18612251290'}, '61': {'name': '耿利群', 'phone': '13717616853'}, '62': {'name': '张丽侠', 'phone': '13716114708'}, '63': {'name': '郭萌萌', 'phone': '15811322896'}, '64': {'name': '刘然', 'phone': '13810646725'}, '65': {'name': '王芳', 'phone': '13811152058'}, '66': {'name': '李雪', 'phone': '18201450903'}, '67': {'name': '刘秋红', 'phone': '13581670255'}, '68': {'name': '罗琪', 'phone': '13693021978'}, '69': {'name': '刘影翠', 'phone': '13716611017'}, '70': {'name': '李芳', 'phone': '13720086106'}, '71': {'name': '王红晶', 'phone': '13911385423'}, '72': {'name': '翁田田', 'phone': '15210580711'}, '73': {'name': '宋丹', 'phone': '18610698277'}, '74': {'name': '焦阳', 'phone': '13691376452'}, '76': {'name': '孙科', 'phone': '13381073047'}, '78': {'name': '齐占先', 'phone': '13718162901'}, '79': {'name': '刘成', 'phone': '13901322542'}, '80': {'name': '尹玉岐', 'phone': '13911810030'}, '81': {'name': '祁俊', 'phone': '13911778826'}, '82': {'name': '王超', 'phone': '13691485486'}, '83': {'name': '肖国颖', 'phone': '13552568891'}, '84': {'name': '马欣欢', 'phone': '15901057009'}, '86': {'name': '宋新华', 'phone': '13683673008'}, '87': {'name': '李建坤', 'phone': '15010250252'}, '88': {'name': '李雪萌', 'phone': '13811680197'}, '90': {'name': '莱阳', 'phone': '18210672698'}, '92': {'name': '霍少博', 'phone': '15910351351'}, '93': {'name': '杜劲', 'phone': '13681129230'}, '94': {'name': '殷爽', 'phone': '13501210584'}, '95': {'name': '毛佳', 'phone': '15210691317'}, '96': {'name': '徐韬韫', 'phone': '15901441970'}, '97': {'name': '杨跃超', 'phone': '15910281728'}, '98': {'name': '张举', 'phone': '18610224503'}, '99': {'name': '蔺少华', 'phone': '18600655580'}, '100': {'name': '宁培', 'phone': '13810303077'}, '101': {'name': '朱影', 'phone': '15811174828'}, '102': {'name': '孙然', 'phone': '15810802850'}, '103': {'name': '叶文君', 'phone': '13716840153'}, '104': {'name': '刘旭', 'phone': '13651000624'}, '105': {'name': '闫超阔', 'phone': '18210273718'}, '108': {'name': '王君', 'phone': '13691332722'}, '109': {'name': '张秋瑾', 'phone': '13269560927'}, '110': {'name': '史维维', 'phone': '15010368255'}, '111': {'name': '张泽', 'phone': '15010234727'}, '112': {'name': '孙林', 'phone': '13520752811'}, '113': {'name': '王润生', 'phone': '13261988826'}, '114': {'name': '崔亚菲', 'phone': '13810979122'}, '115': {'name': '李雪娇', 'phone': '15910619124'}, '116': {'name': '柳建军', 'phone': '13011030093'}, '117': {'name': '孙学勇', 'phone': '13520765718'}, '118': {'name': '董兰兰', 'phone': '13910303323'}, '119': {'name': '陈娜', 'phone': '18510337879'}, '120': {'name': '杨帆', 'phone': '18610229696'}, '122': {'name': '张春贤', 'phone': '17310179107'}, '123': {'name': '张立伟', 'phone': '13911285239'}, '124': {'name': '李岩', 'phone': '15810525991'}, '126': {'name'Line truncated
]
}
],
"outputs": [],
"source": [
"filename = 'data/tiangongyuan.json'\n",
"with open(filename,'r') as fl:\n",