20230426
This commit is contained in:
1 parent
60cd4d2643
commit
d5af3bcb91
6 files changed
+896
-218
No files matched your search
+48
-47
@@ -10,15 +10,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"execution_count": 29,
|
||||
"id": "9bd78072-29e5-4c98-8bbe-97f525cf9e4a",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-21T09:29:30.178602Z",
|
||||
"iopub.status.busy": "2023-04-21T09:29:30.177717Z",
|
||||
"iopub.status.idle": "2023-04-21T09:29:30.928850Z",
|
||||
"shell.execute_reply": "2023-04-21T09:29:30.927826Z",
|
||||
"shell.execute_reply.started": "2023-04-21T09:29:30.178561Z"
|
||||
"iopub.execute_input": "2023-04-26T09:21:52.196489Z",
|
||||
"iopub.status.busy": "2023-04-26T09:21:52.195668Z",
|
||||
"iopub.status.idle": "2023-04-26T09:21:52.973388Z",
|
||||
"shell.execute_reply": "2023-04-26T09:21:52.972674Z",
|
||||
"shell.execute_reply.started": "2023-04-26T09:21:52.196448Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -72,15 +72,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 19,
|
||||
"execution_count": 31,
|
||||
"id": "dd3c65ea-cc8a-4f1b-8698-d1799f99e101",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-24T09:55:49.171204Z",
|
||||
"iopub.status.busy": "2023-04-24T09:55:49.170336Z",
|
||||
"iopub.status.idle": "2023-04-24T09:55:49.259229Z",
|
||||
"shell.execute_reply": "2023-04-24T09:55:49.258337Z",
|
||||
"shell.execute_reply.started": "2023-04-24T09:55:49.171161Z"
|
||||
"iopub.execute_input": "2023-04-26T09:36:18.999273Z",
|
||||
"iopub.status.busy": "2023-04-26T09:36:18.998427Z",
|
||||
"iopub.status.idle": "2023-04-26T09:36:19.081109Z",
|
||||
"shell.execute_reply": "2023-04-26T09:36:19.080378Z",
|
||||
"shell.execute_reply.started": "2023-04-26T09:36:18.999232Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -89,7 +89,7 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"478\n",
|
||||
"454\n",
|
||||
"ok\n"
|
||||
]
|
||||
}
|
||||
@@ -113,7 +113,7 @@
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl) \n",
|
||||
"\n",
|
||||
"filename = 'data/places_result_20230424-sjz.csv'\n",
|
||||
"filename = 'data/places_result_20230426-sjz.csv'\n",
|
||||
"with open(filename,'r',newline='') as csv_file:\n",
|
||||
" fl = csv.reader(csv_file,delimiter=',')\n",
|
||||
" header = next(fl) \n",
|
||||
@@ -135,7 +135,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_石家庄(20230424).json'\n",
|
||||
"filename = 'data/result_石家庄(20230426).json'\n",
|
||||
"with open(filename,'w') as fl:\n",
|
||||
" json.dump(re_ta, fl) \n",
|
||||
"print('ok')"
|
||||
@@ -151,15 +151,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 20,
|
||||
"execution_count": 32,
|
||||
"id": "97d86ce2-6664-41a1-89d2-ddaa0611bac1",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-24T09:56:59.802126Z",
|
||||
"iopub.status.busy": "2023-04-24T09:56:59.801454Z",
|
||||
"iopub.status.idle": "2023-04-24T09:57:00.013623Z",
|
||||
"shell.execute_reply": "2023-04-24T09:57:00.012990Z",
|
||||
"shell.execute_reply.started": "2023-04-24T09:56:59.802093Z"
|
||||
"iopub.execute_input": "2023-04-26T09:37:10.787453Z",
|
||||
"iopub.status.busy": "2023-04-26T09:37:10.786596Z",
|
||||
"iopub.status.idle": "2023-04-26T09:37:10.924736Z",
|
||||
"shell.execute_reply": "2023-04-26T09:37:10.923992Z",
|
||||
"shell.execute_reply.started": "2023-04-26T09:37:10.787410Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -170,7 +170,7 @@
|
||||
"\n",
|
||||
"items = ['身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
|
||||
"title = ['编号','姓名','性别','单位','身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
|
||||
"filename = 'data/result_石家庄(20230424).json'\n",
|
||||
"filename = 'data/result_石家庄(20230426).json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl)\n",
|
||||
"\n",
|
||||
@@ -194,7 +194,7 @@
|
||||
" else:\n",
|
||||
" list2.append('') \n",
|
||||
" list1.append(list2)\n",
|
||||
"filename = 'data/石家庄石化体测情况表(20230424).xlsx'\n",
|
||||
"filename = 'data/石家庄石化体测情况表(20230426).xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"sheet.append(title)\n",
|
||||
@@ -214,15 +214,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 16,
|
||||
"execution_count": 33,
|
||||
"id": "e2b68cb1-3a6f-4b51-afbd-d6c9634348b1",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-24T09:40:17.019067Z",
|
||||
"iopub.status.busy": "2023-04-24T09:40:17.018180Z",
|
||||
"iopub.status.idle": "2023-04-24T09:40:17.154594Z",
|
||||
"shell.execute_reply": "2023-04-24T09:40:17.153693Z",
|
||||
"shell.execute_reply.started": "2023-04-24T09:40:17.019024Z"
|
||||
"iopub.execute_input": "2023-04-26T09:38:27.401785Z",
|
||||
"iopub.status.busy": "2023-04-26T09:38:27.401110Z",
|
||||
"iopub.status.idle": "2023-04-26T09:38:27.597084Z",
|
||||
"shell.execute_reply": "2023-04-26T09:38:27.596368Z",
|
||||
"shell.execute_reply.started": "2023-04-26T09:38:27.401745Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
@@ -231,7 +231,7 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"1200\n",
|
||||
"2140\n",
|
||||
"ok\n"
|
||||
]
|
||||
}
|
||||
@@ -255,7 +255,7 @@
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl) \n",
|
||||
"\n",
|
||||
"filename = 'data/places_result_20230424-sjz.csv'\n",
|
||||
"filename = 'data/places_result_20230426-sjzall.csv'\n",
|
||||
"with open(filename,'r',newline='') as csv_file:\n",
|
||||
" fl = csv.reader(csv_file,delimiter=',')\n",
|
||||
" header = next(fl) \n",
|
||||
@@ -293,23 +293,24 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 17,
|
||||
"execution_count": 35,
|
||||
"id": "57b22a08-554b-4b23-b98c-002b4608729f",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-24T09:40:43.681959Z",
|
||||
"iopub.status.busy": "2023-04-24T09:40:43.681329Z",
|
||||
"iopub.status.idle": "2023-04-24T09:40:43.726717Z",
|
||||
"shell.execute_reply": "2023-04-24T09:40:43.725677Z",
|
||||
"shell.execute_reply.started": "2023-04-24T09:40:43.681925Z"
|
||||
}
|
||||
"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": [
|
||||
"{'综合办公室(党委办公室)': 16, '销运管理部': 36, '企业管理部(法律事务部)': 12, '合资运行部': 22, '消防支队': 30, '设备工程部': 43, '党群文化部(宣传工团)': 9, '检验计量中心': 107, '发展计划部计划组': 8, '物资采购中心': 31, '炼油运行一部': 61, '审计管理部': 6, '发展计划部发展规划组': 11, '财务管理部': 16, '生产技术部': 26, '党委组织部(资源管理部)': 7, '安全环保部': 20, '储运运行部': 95, '化工运行部': 126, '信息中心': 14, '热电运行部': 48, '炼油运行三部': 52, '行政事务中心': 24, '电气仪表中心': 76, '炼油运行五部': 59, '水务运行部': 82, '编组站': 22, '炼油运行二部': 52, '炼油运行四部': 87, '纪委(监督部)': 2}\n"
|
||||
"{'综合办公室(党委办公室)': 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"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -332,7 +333,7 @@
|
||||
" list2 = []\n",
|
||||
" list2 = [k,v]\n",
|
||||
" list1.append(list2)\n",
|
||||
"filename = 'data/石家庄测试名单部门情况(20230424).xlsx'\n",
|
||||
"filename = 'data/石家庄测试名单部门情况(20230426).xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"sheet.append(title)\n",
|
||||
@@ -351,15 +352,15 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 18,
|
||||
"execution_count": 34,
|
||||
"id": "0001a577-3d89-4e3d-be07-51cc74e3640f",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-04-24T09:41:20.642552Z",
|
||||
"iopub.status.busy": "2023-04-24T09:41:20.641713Z",
|
||||
"iopub.status.idle": "2023-04-24T09:41:20.758674Z",
|
||||
"shell.execute_reply": "2023-04-24T09:41:20.757988Z",
|
||||
"shell.execute_reply.started": "2023-04-24T09:41:20.642510Z"
|
||||
"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": []
|
||||
},
|
||||
@@ -378,7 +379,7 @@
|
||||
"for k, v in dict2.items():\n",
|
||||
" if k not in dict1.keys():\n",
|
||||
" list1.append([k,v['name'],v['unit']])\n",
|
||||
"filename = 'data/石家庄未测试名单(截至20230424).xlsx'\n",
|
||||
"filename = 'data/石家庄未测试名单(截至20230426).xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"title =['测试编号','姓名','单位']\n",
|
||||
|
||||
Reference in new issue
Block a user