20230430
This commit is contained in:
1 parent
f03e964585
commit
5ac233adcc
4 files changed
+574
-141
No files matched your search
+59
-53
@@ -10,15 +10,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 138,
|
||||
"execution_count": 149,
|
||||
"id": "1b92b7c5-cb77-49da-95b7-34827ecf1d16",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-27T11:13:41.777211Z",
|
||||
"iopub.status.busy": "2023-04-27T11:13:41.776344Z",
|
||||
"iopub.status.idle": "2023-04-27T11:13:44.240985Z",
|
||||
"shell.execute_reply": "2023-04-27T11:13:44.239943Z",
|
||||
"shell.execute_reply.started": "2023-04-27T11:13:41.777171Z"
|
||||
"iopub.execute_input": "2023-04-28T23:44:56.066757Z",
|
||||
"iopub.status.busy": "2023-04-28T23:44:56.065886Z",
|
||||
"iopub.status.idle": "2023-04-28T23:44:58.568470Z",
|
||||
"shell.execute_reply": "2023-04-28T23:44:58.567666Z",
|
||||
"shell.execute_reply.started": "2023-04-28T23:44:56.066716Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -89,15 +89,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 141,
|
||||
"execution_count": 150,
|
||||
"id": "71e1ec6a-6797-4496-969a-1d1461b9ea58",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-27T11:17:30.688334Z",
|
||||
"iopub.status.busy": "2023-04-27T11:17:30.687922Z",
|
||||
"iopub.status.idle": "2023-04-27T11:17:31.209520Z",
|
||||
"shell.execute_reply": "2023-04-27T11:17:31.208618Z",
|
||||
"shell.execute_reply.started": "2023-04-27T11:17:30.688305Z"
|
||||
"iopub.execute_input": "2023-04-28T23:45:21.332726Z",
|
||||
"iopub.status.busy": "2023-04-28T23:45:21.331812Z",
|
||||
"iopub.status.idle": "2023-04-28T23:45:21.591418Z",
|
||||
"shell.execute_reply": "2023-04-28T23:45:21.590691Z",
|
||||
"shell.execute_reply.started": "2023-04-28T23:45:21.332693Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -106,20 +106,10 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"358\n",
|
||||
"1987 孙伟滨 已测试!\n",
|
||||
"1402 郭力 已测试!\n",
|
||||
"1968 项征 已测试!\n",
|
||||
"1980 张艳梅 已测试!\n",
|
||||
"2243 李宁 已测试!\n",
|
||||
"2252 张宝山 已测试!\n",
|
||||
"1398 李海峰 已测试!\n",
|
||||
"999 张术申 已测试!\n",
|
||||
"6199 张杰 已测试!\n",
|
||||
"1681 何志坚 已测试!\n",
|
||||
"383 肖建国 已测试!\n",
|
||||
"358\n",
|
||||
"4229\n"
|
||||
"335\n",
|
||||
"123 孙剑 已测试!\n",
|
||||
"335\n",
|
||||
"4136\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -142,7 +132,7 @@
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl) \n",
|
||||
"\n",
|
||||
"filename = 'data/places_result_20230427.csv'\n",
|
||||
"filename = 'data/places_result_20230428.csv'\n",
|
||||
"with open(filename,'r',newline='') as csv_file:\n",
|
||||
" fl = csv.reader(csv_file,delimiter=',')\n",
|
||||
" header = next(fl) \n",
|
||||
@@ -175,7 +165,7 @@
|
||||
" else:\n",
|
||||
" for k1,v1 in v.items():\n",
|
||||
" dict2[k][k1] = v1\n",
|
||||
"filename = 'data/result_燕山石化(20230427).json'\n",
|
||||
"filename = 'data/result_燕山石化(20230428).json'\n",
|
||||
"with open(filename,'w') as fl:\n",
|
||||
" json.dump(re_ta, fl, ensure_ascii=False) \n",
|
||||
"print(len(re_ta))\n",
|
||||
@@ -195,15 +185,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 143,
|
||||
"execution_count": 151,
|
||||
"id": "c24880ad-bbbd-4ad8-a894-cbcea389e822",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-27T11:20:46.486381Z",
|
||||
"iopub.status.busy": "2023-04-27T11:20:46.485740Z",
|
||||
"iopub.status.idle": "2023-04-27T11:20:46.658108Z",
|
||||
"shell.execute_reply": "2023-04-27T11:20:46.657410Z",
|
||||
"shell.execute_reply.started": "2023-04-27T11:20:46.486341Z"
|
||||
"iopub.execute_input": "2023-04-28T23:46:14.648250Z",
|
||||
"iopub.status.busy": "2023-04-28T23:46:14.647361Z",
|
||||
"iopub.status.idle": "2023-04-28T23:46:14.803308Z",
|
||||
"shell.execute_reply": "2023-04-28T23:46:14.802604Z",
|
||||
"shell.execute_reply.started": "2023-04-28T23:46:14.648208Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -215,7 +205,7 @@
|
||||
"items = ['身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
|
||||
"title = ['编号','姓名','性别','单位','车间','班组','身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
|
||||
"\n",
|
||||
"filename = 'data/result_燕山石化(20230427).json'\n",
|
||||
"filename = 'data/result_燕山石化(20230428).json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl)\n",
|
||||
"\n",
|
||||
@@ -240,7 +230,7 @@
|
||||
" else:\n",
|
||||
" list2.append('') \n",
|
||||
" list1.append(list2)\n",
|
||||
"filename = 'data/燕山石化体测情况表(20230427).xlsx'\n",
|
||||
"filename = 'data/燕山石化体测情况表(20230428).xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"sheet.append(title)\n",
|
||||
@@ -260,15 +250,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 144,
|
||||
"execution_count": 152,
|
||||
"id": "68454877-f1fe-4eed-8a48-265e428f892e",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-27T11:21:48.040006Z",
|
||||
"iopub.status.busy": "2023-04-27T11:21:48.039202Z",
|
||||
"iopub.status.idle": "2023-04-27T11:21:48.069140Z",
|
||||
"shell.execute_reply": "2023-04-27T11:21:48.068103Z",
|
||||
"shell.execute_reply.started": "2023-04-27T11:21:48.039973Z"
|
||||
"iopub.execute_input": "2023-04-28T23:46:28.786698Z",
|
||||
"iopub.status.busy": "2023-04-28T23:46:28.786246Z",
|
||||
"iopub.status.idle": "2023-04-28T23:46:28.816358Z",
|
||||
"shell.execute_reply": "2023-04-28T23:46:28.815328Z",
|
||||
"shell.execute_reply.started": "2023-04-28T23:46:28.786667Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -277,7 +267,7 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{'合成橡胶厂工会': 30, '炼油厂工会': 95, '检验计量中心工会': 16, '烯烃厂工会': 115, '化学品厂工会': 29, '合成树脂厂': 10, '有机化工厂工会': 30, '储运厂工会': 12, '机关工会': 6, '高科公司工会': 9, '热电厂工会': 1, '物装中心工会': 5}\n"
|
||||
"{'储运厂工会': 37, '炼油厂工会': 42, '化学品厂工会': 29, '高科公司工会': 69, '有机化工厂工会': 91, '物装中心工会': 3, '合成树脂厂': 10, '热电厂工会': 2, '合成橡胶厂工会': 27, '教育培训中心工会': 2, '烯烃厂工会': 11, '检验计量中心工会': 8, '机关工会': 2, '生产运行保障中心': 2}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -285,7 +275,7 @@
|
||||
"import json\n",
|
||||
"import openpyxl\n",
|
||||
"\n",
|
||||
"filename = 'data/result_燕山石化(20230427).json'\n",
|
||||
"filename = 'data/result_燕山石化(20230428).json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl)\n",
|
||||
"dict2 = {}\n",
|
||||
@@ -300,7 +290,7 @@
|
||||
" list2 = []\n",
|
||||
" list2 = [k,v]\n",
|
||||
" list1.append(list2)\n",
|
||||
"filename = 'data/燕山石化部门测试人数情况表(20230427).xlsx'\n",
|
||||
"filename = 'data/燕山石化部门测试人数情况表(20230428).xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"sheet.append(title)\n",
|
||||
@@ -377,15 +367,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 118,
|
||||
"execution_count": 148,
|
||||
"id": "eddf7dab-b28d-402a-aeaf-27c120048ecb",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-26T10:55:40.757537Z",
|
||||
"iopub.status.busy": "2023-04-26T10:55:40.756689Z",
|
||||
"iopub.status.idle": "2023-04-26T10:55:41.510205Z",
|
||||
"shell.execute_reply": "2023-04-26T10:55:41.509509Z",
|
||||
"shell.execute_reply.started": "2023-04-26T10:55:40.757497Z"
|
||||
"iopub.execute_input": "2023-04-27T12:02:16.168114Z",
|
||||
"iopub.status.busy": "2023-04-27T12:02:16.167671Z",
|
||||
"iopub.status.idle": "2023-04-27T12:02:16.802793Z",
|
||||
"shell.execute_reply": "2023-04-27T12:02:16.802099Z",
|
||||
"shell.execute_reply.started": "2023-04-27T12:02:16.168084Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -399,6 +389,22 @@
|
||||
"filename = 'data/result_燕山石化.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl)\n",
|
||||
"# 筛选重名剔除名单\n",
|
||||
"chongming = []\n",
|
||||
"filename = 'data/燕山石化重名人员测试情况.xlsx'\n",
|
||||
"wb = openpyxl.load_workbook(filename)\n",
|
||||
"sheet = wb.active\n",
|
||||
"for n in range(1, sheet.max_row+1,2):\n",
|
||||
" if sheet.cell(n,1).value is not None:\n",
|
||||
" code1 = int(sheet.cell(n, 1).value)\n",
|
||||
" code2 = int(sheet.cell(n+1, 1).value)\n",
|
||||
" bz1 = sheet.cell(n, 4).value\n",
|
||||
" bz2 = sheet.cell(n+1, 4).value\n",
|
||||
" if bz1 =='否' and bz2 =='否':\n",
|
||||
" chongming.append(max(code1,code2))\n",
|
||||
" else:\n",
|
||||
" chongming.append(code1)\n",
|
||||
" chongming.append(code2)\n",
|
||||
"\n",
|
||||
"filename = 'data/燕山石化人员名单.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
@@ -406,7 +412,7 @@
|
||||
"list1 = []\n",
|
||||
"for k, v in dict2.items():\n",
|
||||
" list2 = []\n",
|
||||
" if k not in dict1.keys():\n",
|
||||
" if k not in dict1.keys() and int(k) not in chongming:\n",
|
||||
" list2.append(str(k).rjust(5,'0'))\n",
|
||||
" list2.append(v['name']) \n",
|
||||
" list2.append(dict2[k]['sex'])\n",
|
||||
@@ -414,7 +420,7 @@
|
||||
" list2.append(dict2[k]['车间'])\n",
|
||||
" list2.append(dict2[k]['班组'])\n",
|
||||
" list1.append(list2)\n",
|
||||
"filename = 'data/燕山石化未体测人员名单(截至20230426).xlsx'\n",
|
||||
"filename = 'data/燕山石化未体测人员名单(截至20230427).xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"sheet.append(title)\n",
|
||||
|
||||
Reference in new issue
Block a user