This commit is contained in:
512song committed 2023-11-19 13:10:06 +08:00
1 parent a4f158504b
commit 2a3b6a1af7
2 files changed
+233 -388

No files matched your search

+149 -359
View File
@@ -315,11 +315,11 @@
"re_ta = {}\n",
"dict1 = {}\n",
"list1 = []\n",
"filename = 'data/北京党校.json'\n",
"filename = 'data/北海炼化2023年.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
"filename = 'data/places_result_20231018.csv'\n",
"filename = 'data/places_result_20231119.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n",
@@ -359,7 +359,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_北海炼化2023.json'\n",
"\n",
"with open(filename,'w') as fl:\n",
" json.dump(re_ta, fl, ensure_ascii=False) \n",
@@ -479,7 +479,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_北京党校.json'\n",
"filename = 'data/result_北海炼化2023.json'\n",
"with open(filename,'r') as fl:\n",
" dict2 = json.load(fl) \n",
"for k, v in dict2.items():\n",
@@ -500,7 +500,7 @@
" dict2[k][item_en]['score'] = cal_score(data1)\n",
" #print(k,v[item_en]['成绩'],cal_score(data1))\n",
"\n",
"filename = f'data/result_北京党校.json'\n",
"filename = f'data/result_北海炼化2023.json'\n",
"with open(filename,'w') as fl:\n",
" json.dump(dict2,fl , ensure_ascii=False) \n",
"print('ok!') "
@@ -557,221 +557,12 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": null,
"id": "b123ee6b-85d2-4660-b226-321832a6b796",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-09T10:50:53.885635Z",
"iopub.status.busy": "2023-11-09T10:50:53.885173Z",
"iopub.status.idle": "2023-11-09T10:51:56.863145Z",
"shell.execute_reply": "2023-11-09T10:51:56.862475Z",
"shell.execute_reply.started": "2023-11-09T10:50:53.885587Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"27\n",
"01731841 由慧敏 {\"errmsg\":\"ok\"}\n",
"01731897 张锦民 {\"errmsg\":\"ok\"}\n",
"03318722 高园苹 {\"errmsg\":\"ok\"}\n",
"03286622 高令臻 {\"errmsg\":\"ok\"}\n",
"01730872 于世建 {\"errmsg\":\"ok\"}\n",
"01732172 吕铁军 {\"errmsg\":\"ok\"}\n",
"01732111 于晓冬 {\"errmsg\":\"ok\"}\n",
"01731828 张宝群 {\"errmsg\":\"ok\"}\n",
"03417182 王品航 {\"errmsg\":\"ok\"}\n",
"03505733 冯佳怡 {\"errmsg\":\"ok\"}\n",
"01731811 张绍俊 {\"errmsg\":\"ok\"}\n",
"03532499 陈武 {\"errmsg\":\"ok\"}\n",
"03532486 常新浩 {\"errmsg\":\"ok\"}\n",
"03532452 梁衍鹏 {\"errmsg\":\"ok\"}\n",
"03532538 孔沫梵 {\"errmsg\":\"ok\"}\n",
"01732119 张魁强 {\"errmsg\":\"ok\"}\n",
"03416970 叶森 {\"errmsg\":\"ok\"}\n",
"01731941 袁令江 {\"errmsg\":\"ok\"}\n",
"01731872 高健 {\"errmsg\":\"ok\"}\n",
"01730751 仉越 {\"errmsg\":\"ok\"}\n",
"03440626 祝千慧 {\"errmsg\":\"ok\"}\n",
"03499403 王天来 {\"errmsg\":\"ok\"}\n",
"01730921 李卫东 {\"errmsg\":\"ok\"}\n",
"03499450 王文静 {\"errmsg\":\"ok\"}\n",
"01731009 李富来 {\"errmsg\":\"ok\"}\n",
"01730916 康静敏 {\"errmsg\":\"ok\"}\n",
"01730917 张长权 {\"errmsg\":\"ok\"}\n",
"03532462 杨子瑞 {\"errmsg\":\"ok\"}\n",
"01731580 程斌 {\"errmsg\":\"ok\"}\n",
"03318714 薛崇博 {\"errmsg\":\"ok\"}\n",
"01732150 张志成 {\"errmsg\":\"ok\"}\n",
"03499425 金添 {\"errmsg\":\"ok\"}\n",
"01730953 俎惠广 {\"errmsg\":\"ok\"}\n",
"03416977 田甜 {\"errmsg\":\"ok\"}\n",
"01732076 韦京山 {\"errmsg\":\"ok\"}\n",
"01731043 冯强 {\"errmsg\":\"ok\"}\n",
"03417334 刘凌羽 {\"errmsg\":\"ok\"}\n",
"03468273 康智皓 {\"errmsg\":\"ok\"}\n",
"03499370 纪旭 {\"errmsg\":\"ok\"}\n",
"01732063 于娜 {\"errmsg\":\"ok\"}\n",
"03505725 邢世成 {\"errmsg\":\"ok\"}\n",
"03417374 魏魁 {\"errmsg\":\"ok\"}\n",
"03468256 刘涛 {\"errmsg\":\"ok\"}\n",
"03417353 李强 {\"errmsg\":\"ok\"}\n",
"03532476 高泽文 {\"errmsg\":\"ok\"}\n",
"03417357 王宁 {\"errmsg\":\"ok\"}\n",
"03499380 程鑫锐 {\"errmsg\":\"ok\"}\n",
"03532480 马海涛 {\"errmsg\":\"ok\"}\n",
"03532509 隋雅婧 {\"errmsg\":\"ok\"}\n",
"01731268 满宝祥 {\"errmsg\":\"ok\"}\n",
"01739828 白云 {\"errmsg\":\"ok\"}\n",
"03417368 郑家宝 {\"errmsg\":\"ok\"}\n",
"01731598 李诚 {\"errmsg\":\"ok\"}\n",
"01739588 胡伟民 {\"errmsg\":\"ok\"}\n",
"03417365 赵欣磊 {\"errmsg\":\"ok\"}\n",
"03499356 李日笙 {\"errmsg\":\"ok\"}\n",
"03532442 马涛 {\"errmsg\":\"ok\"}\n",
"03417338 吕兆鑫 {\"errmsg\":\"ok\"}\n",
"03532834 孙纳川 {\"errmsg\":\"ok\"}\n",
"03532829 魏禹涵 {\"errmsg\":\"ok\"}\n",
"03468291 李强 {\"errmsg\":\"ok\"}\n",
"01730808 申玉红 {\"errmsg\":\"ok\"}\n",
"01731155 窦国生 {\"errmsg\":\"ok\"}\n",
"03131181 付中杰 {\"errmsg\":\"ok\"}\n",
"03468350 赵庆学 {\"errmsg\":\"ok\"}\n",
"01730960 刘淑敏 {\"errmsg\":\"ok\"}\n",
"01730675 高建军 {\"errmsg\":\"ok\"}\n",
"01739635 李刚 {\"errmsg\":\"ok\"}\n",
"01731900 宋斌 {\"errmsg\":\"ok\"}\n",
"03499398 潘瑾雯 {\"errmsg\":\"ok\"}\n",
"03172811 郭通 {\"errmsg\":\"ok\"}\n",
"03417217 安琪 {\"errmsg\":\"ok\"}\n",
"03318717 赵珊珊 {\"errmsg\":\"ok\"}\n",
"01730663 畅淮勇 {\"errmsg\":\"ok\"}\n",
"01730871 范炳凯 {\"errmsg\":\"ok\"}\n",
"01731855 高华贤 {\"errmsg\":\"ok\"}\n",
"01730753 赵彤芬 {\"errmsg\":\"ok\"}\n",
"01730737 张宝忠 {\"errmsg\":\"ok\"}\n",
"01731848 侯文靖 {\"errmsg\":\"ok\"}\n",
"01731930 薛少贤 {\"errmsg\":\"ok\"}\n",
"03499447 李佳瑶 {\"errmsg\":\"ok\"}\n",
"03499463 张明言 {\"errmsg\":\"ok\"}\n",
"03499373 曹金旭 {\"errmsg\":\"ok\"}\n",
"01731107 张长恒 {\"errmsg\":\"ok\"}\n",
"01730813 刘津 {\"errmsg\":\"ok\"}\n",
"01731868 冯庆军 {\"errmsg\":\"ok\"}\n",
"01101061 刘伟 {\"errmsg\":\"ok\"}\n",
"01730739 张长顺 {\"errmsg\":\"ok\"}\n",
"01732716 龚磊 {\"errmsg\":\"ok\"}\n",
"01731820 张劲松 {\"errmsg\":\"ok\"}\n",
"01732055 赵晓群 {\"errmsg\":\"ok\"}\n",
"01731036 董振民 {\"errmsg\":\"ok\"}\n",
"01730704 马龙 {\"errmsg\":\"ok\"}\n",
"03362196 符天说 {\"errmsg\":\"ok\"}\n",
"03468331 王蕾 {\"errmsg\":\"ok\"}\n",
"01731859 张伟 {\"errmsg\":\"ok\"}\n",
"01731641 王庆池 {\"errmsg\":\"ok\"}\n",
"01730720 吴俊斌 {\"errmsg\":\"ok\"}\n",
"03391162 杨佳坤 {\"errmsg\":\"ok\"}\n",
"01730818 杨宝强 {\"errmsg\":\"ok\"}\n",
"03391147 屈松 {\"errmsg\":\"ok\"}\n",
"01731255 宋清木 {\"errmsg\":\"ok\"}\n",
"01732083 周幸旗 {\"errmsg\":\"ok\"}\n",
"01731283 侯聚现 {\"errmsg\":\"ok\"}\n",
"03532456 黄蓓蓓 {\"errmsg\":\"ok\"}\n",
"01730934 周荣光 {\"errmsg\":\"ok\"}\n",
"01553958 李阳 {\"errmsg\":\"ok\"}\n",
"03391181 阎旭 {\"errmsg\":\"ok\"}\n",
"03505726 陈冰倩 {\"errmsg\":\"ok\"}\n",
"03468289 曲治儒 {\"errmsg\":\"ok\"}\n",
"03362168 张瑞 {\"errmsg\":\"ok\"}\n",
"03532474 商雨晴 {\"errmsg\":\"ok\"}\n",
"03532448 林子茹 {\"errmsg\":\"ok\"}\n",
"03532511 宋子扬 {\"errmsg\":\"ok\"}\n",
"01732190 赵超 {\"errmsg\":\"ok\"}\n",
"01731901 杨炳利 {\"errmsg\":\"ok\"}\n",
"01731007 张利民 {\"errmsg\":\"ok\"}\n",
"01731271 王建璋 {\"errmsg\":\"ok\"}\n",
"03362201 袁晓东 {\"errmsg\":\"ok\"}\n",
"01730670 丁树全 {\"errmsg\":\"ok\"}\n",
"01731627 石洪兴 {\"errmsg\":\"ok\"}\n",
"01732691 费楠 {\"errmsg\":\"ok\"}\n",
"03499384 马永才 {\"errmsg\":\"ok\"}\n",
"03417366 邹治美 {\"errmsg\":\"ok\"}\n",
"03499376 刘宇婷 {\"errmsg\":\"ok\"}\n",
"01731902 薛新亮 {\"errmsg\":\"ok\"}\n",
"01735421 姚庆麟 {\"errmsg\":\"ok\"}\n",
"01732273 李洪菊 {\"errmsg\":\"ok\"}\n",
"01731229 刘风松 {\"errmsg\":\"ok\"}\n",
"01731887 刘欣 {\"errmsg\":\"ok\"}\n",
"03499375 刘乃震 {\"errmsg\":\"ok\"}\n",
"03417373 魏文波 {\"errmsg\":\"ok\"}\n",
"01732706 袁守朝 {\"errmsg\":\"ok\"}\n",
"01730939 付秋杰 {\"errmsg\":\"ok\"}\n",
"03468345 薛婷婷 {\"errmsg\":\"ok\"}\n",
"03468253 刘宇乐 {\"errmsg\":\"ok\"}\n",
"01732688 刘山虎 {\"errmsg\":\"ok\"}\n",
"01732228 李文彬 {\"errmsg\":\"ok\"}\n",
"01732675 贾成龙 {\"errmsg\":\"ok\"}\n",
"03286615 王小康 {\"errmsg\":\"ok\"}\n",
"01732225 剧海峰 {\"errmsg\":\"ok\"}\n",
"01732179 张彬 {\"errmsg\":\"ok\"}\n",
"01730970 高川 {\"errmsg\":\"ok\"}\n",
"01730682 郝介华 {\"errmsg\":\"ok\"}\n",
"01732668 赵健 {\"errmsg\":\"ok\"}\n",
"01731657 张兆茹 {\"errmsg\":\"ok\"}\n",
"01731258 周玲 {\"errmsg\":\"ok\"}\n",
"01731893 王连喜 {\"errmsg\":\"ok\"}\n",
"03499428 王博 {\"errmsg\":\"ok\"}\n",
"03499353 闫馨雨 {\"errmsg\":\"ok\"}\n",
"01730738 张博宇 {\"errmsg\":\"ok\"}\n",
"01731669 蒋春 {\"errmsg\":\"ok\"}\n",
"01731246 张鸿志 {\"errmsg\":\"ok\"}\n",
"01731614 刘元春 {\"errmsg\":\"ok\"}\n",
"01731917 杨宝杰 {\"errmsg\":\"ok\"}\n",
"01731199 邓平 {\"errmsg\":\"ok\"}\n",
"01730680 韩永利 {\"errmsg\":\"ok\"}\n",
"03440611 张芮芮 {\"errmsg\":\"ok\"}\n",
"03505747 刘世尧 {\"errmsg\":\"ok\"}\n",
"03391105 黄婷婷 {\"errmsg\":\"ok\"}\n",
"03499420 秦学森 {\"errmsg\":\"ok\"}\n",
"01730807 郭强 {\"errmsg\":\"ok\"}\n",
"01731867 李津 {\"errmsg\":\"ok\"}\n",
"03499399 佟嘉航 {\"errmsg\":\"ok\"}\n",
"03499390 朱丽丽 {\"errmsg\":\"ok\"}\n",
"03417136 李智 {\"errmsg\":\"ok\"}\n",
"01730691 李树国 {\"errmsg\":\"ok\"}\n",
"01731197 刘佩志 {\"errmsg\":\"ok\"}\n",
"03499357 张泽贤 {\"errmsg\":\"ok\"}\n",
"03505738 杨柳 {\"errmsg\":\"ok\"}\n",
"03499417 王雪婧 {\"errmsg\":\"ok\"}\n",
"01730838 李占英 {\"errmsg\":\"ok\"}\n",
"01731865 韩勇 {\"errmsg\":\"ok\"}\n",
"01730834 张智超 {\"errmsg\":\"ok\"}\n",
"01739719 张颖 {\"errmsg\":\"ok\"}\n",
"03505740 王颖郅 {\"errmsg\":\"ok\"}\n",
"03505751 梁芳珍 {\"errmsg\":\"ok\"}\n",
"03505744 孙丽敏 {\"errmsg\":\"ok\"}\n",
"03505745 孙隆凯 {\"errmsg\":\"ok\"}\n",
"03362149 刘宏 {\"errmsg\":\"ok\"}\n",
"03499364 张启涵 {\"errmsg\":\"ok\"}\n",
"03417003 任绪龙 {\"errmsg\":\"ok\"}\n",
"03417172 宋超 {\"errmsg\":\"ok\"}\n",
"03505739 武林芳 {\"errmsg\":\"ok\"}\n",
"03468335 田思佳 {\"errmsg\":\"ok\"}\n",
"03468333 王鹏 {\"errmsg\":\"ok\"}\n",
"03145582 贾羽翀 {\"errmsg\":\"ok\"}\n",
"03417174 李金良 {\"errmsg\":\"ok\"}\n",
"01730935 石永新 {\"errmsg\":\"ok\"}\n",
"01731843 侯玉军 {\"errmsg\":\"ok\"}\n",
"03468309 杨政辰 {\"errmsg\":\"ok\"}\n",
"01731264 温丽强 {\"errmsg\":\"ok\"}\n",
"01739606 宋文生 {\"errmsg\":\"ok\"}\n",
"01731028 李连军 {\"errmsg\":\"ok\"}\n"
]
}
],
"outputs": [],
"source": [
"import requests\n",
"import json\n",
@@ -1431,15 +1222,15 @@
},
{
"cell_type": "code",
"execution_count": 19,
"execution_count": 39,
"id": "46aa847d-e1fe-45bd-85b6-e2d792ec8842",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-27T02:39:19.221686Z",
"iopub.status.busy": "2023-10-27T02:39:19.220179Z",
"iopub.status.idle": "2023-10-27T02:39:19.596125Z",
"shell.execute_reply": "2023-10-27T02:39:19.595375Z",
"shell.execute_reply.started": "2023-10-27T02:39:19.221609Z"
"iopub.execute_input": "2023-11-19T04:15:23.965852Z",
"iopub.status.busy": "2023-11-19T04:15:23.965390Z",
"iopub.status.idle": "2023-11-19T04:15:24.167875Z",
"shell.execute_reply": "2023-11-19T04:15:24.167415Z",
"shell.execute_reply.started": "2023-11-19T04:15:23.965814Z"
}
},
"outputs": [
@@ -1456,7 +1247,7 @@
"import openpyxl\n",
"\n",
"\n",
"filename = 'data/result_天津231017.json'\n",
"filename = 'data/result_北海炼化2023.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"\n",
@@ -1476,7 +1267,7 @@
"\n",
"\n",
"list1 = []\n",
"fiie_path ='./134/'\n",
"fiie_path ='./138/'\n",
"list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp','bmi']\n",
"i=1\n",
"list2 = []\n",
@@ -1509,7 +1300,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_天津231017.json'\n",
"filename = f'data/data_北海炼化2023.json'\n",
"with open(filename,'w') as fl:\n",
" json.dump(dict2,fl , ensure_ascii=False) \n",
"print('ok!') "
@@ -1525,15 +1316,15 @@
},
{
"cell_type": "code",
"execution_count": 28,
"execution_count": 41,
"id": "63edd636-f034-4aa6-8575-63d5cdb84adb",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-27T02:49:58.190922Z",
"iopub.status.busy": "2023-10-27T02:49:58.190633Z",
"iopub.status.idle": "2023-10-27T02:49:58.268977Z",
"shell.execute_reply": "2023-10-27T02:49:58.268090Z",
"shell.execute_reply.started": "2023-10-27T02:49:58.190898Z"
"iopub.execute_input": "2023-11-19T04:16:52.956569Z",
"iopub.status.busy": "2023-11-19T04:16:52.956105Z",
"iopub.status.idle": "2023-11-19T04:16:52.971457Z",
"shell.execute_reply": "2023-11-19T04:16:52.971050Z",
"shell.execute_reply.started": "2023-11-19T04:16:52.956532Z"
},
"tags": []
},
@@ -1542,9 +1333,9 @@
"name": "stdout",
"output_type": "stream",
"text": [
"平均成绩:2.4704分,男性:3788人\n",
"平均成绩:2.8269分,女性:1595人\n",
"平均成绩:2.576分,总体:5383人\n"
"平均成绩:2.938分,男性:562人\n",
"平均成绩:3.1399分,女性:135人\n",
"平均成绩:2.9771分,总体:697人\n"
]
}
],
@@ -1571,7 +1362,7 @@
" score = score+v['score']\n",
"print(f'平均成绩:{round(score/f,4)}分,女性:{f}人')\n",
"t_score = t_score + score\n",
"print(f'平均成绩:{round(t_score/5383,4)}分,总体:5383人')"
"print(f'平均成绩:{round(t_score/(f+m),4)}分,总体:{(f+m)}人')"
]
},
{
@@ -1584,15 +1375,15 @@
},
{
"cell_type": "code",
"execution_count": 31,
"execution_count": 42,
"id": "1b4a3f02-9b2e-41fc-ac6c-8163907a07f1",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-27T02:58:06.779955Z",
"iopub.status.busy": "2023-10-27T02:58:06.779651Z",
"iopub.status.idle": "2023-10-27T02:58:07.075493Z",
"shell.execute_reply": "2023-10-27T02:58:07.074963Z",
"shell.execute_reply.started": "2023-10-27T02:58:06.779929Z"
"iopub.execute_input": "2023-11-19T04:17:17.504074Z",
"iopub.status.busy": "2023-11-19T04:17:17.503552Z",
"iopub.status.idle": "2023-11-19T04:17:17.590028Z",
"shell.execute_reply": "2023-11-19T04:17:17.589579Z",
"shell.execute_reply.started": "2023-11-19T04:17:17.504036Z"
},
"tags": []
},
@@ -1601,11 +1392,11 @@
"name": "stdout",
"output_type": "stream",
"text": [
"0~255分人数:2524人,男性:2056人,女性:468人\n",
"256~332分人数:2214人,男性:1400人,女性:814人\n",
"333~367分人数:495人,男性:274人,女性:221人\n",
"368~500分人数:150人,男性:58人,女性:92人\n",
"5383\n",
"0~255分人数:136人,男性:117人,女性:19人\n",
"256~332分人数:357人,男性:298人,女性:59人\n",
"333~367分人数:157人,男性:114人,女性:43人\n",
"368~500分人数:47人,男性:33人,女性:14人\n",
"697\n",
"ok\n"
]
}
@@ -1615,7 +1406,7 @@
"\n",
"items = ['体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
"\n",
"filename = 'data/data_天津231017.json'\n",
"filename = 'data/data_北海炼化2023.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"dict2 = {}\n",
@@ -1655,15 +1446,15 @@
},
{
"cell_type": "code",
"execution_count": 32,
"execution_count": 43,
"id": "2d661ca6-6129-4da1-ac25-51d0156babb2",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-27T02:58:18.805947Z",
"iopub.status.busy": "2023-10-27T02:58:18.805660Z",
"iopub.status.idle": "2023-10-27T02:58:18.884931Z",
"shell.execute_reply": "2023-10-27T02:58:18.884363Z",
"shell.execute_reply.started": "2023-10-27T02:58:18.805924Z"
"iopub.execute_input": "2023-11-19T04:17:30.617374Z",
"iopub.status.busy": "2023-11-19T04:17:30.616981Z",
"iopub.status.idle": "2023-11-19T04:17:30.630089Z",
"shell.execute_reply": "2023-11-19T04:17:30.629679Z",
"shell.execute_reply.started": "2023-11-19T04:17:30.617343Z"
},
"tags": []
},
@@ -1672,14 +1463,14 @@
"name": "stdout",
"output_type": "stream",
"text": [
"20-24 {'不合格': 131, '合格': 177, '良好': 25, '优秀': 5}\n",
"25-29 {'不合格': 54, '良好': 21, '合格': 90, '优秀': 3}\n",
"30-34 {'不合格': 14, '合格': 46, '良好': 11, '优秀': 4}\n",
"35-39 {'不合格': 30, '良好': 32, '合格': 77, '优秀': 8}\n",
"40-44 {'不合格': 46, '合格': 84, '优秀': 12, '良好': 24}\n",
"45-49 {'合格': 204, '不合格': 112, '良好': 69, '优秀': 32}\n",
"50-54 {'合格': 136, '不合格': 81, '优秀': 28, '良好': 39}\n",
"55-80 {'合格': 0, '不合格': 0, '良好': 0, '优秀': 0}\n"
"20-24 {'合格': 6, '不合格': 3, '良好': 5}\n",
"25-29 {'合格': 12, '不合格': 7, '良好': 4, '优秀': 2}\n",
"30-34 {'不合格': 2, '合格': 12, '良好': 6, '优秀': 1}\n",
"35-39 {'良好': 7, '合格': 7, '不合格': 2, '优秀': 0}\n",
"40-44 {'合格': 2, '不合格': 2, '良好': 2, '优秀': 2}\n",
"45-49 {'不合格': 3, '良好': 13, '合格': 18, '优秀': 4}\n",
"50-54 {'良好': 6, '合格': 2, '不合格': 0, '优秀': 5}\n",
"55-80 {'合格': 0, '不合格': 0, '优秀': 0, '良好': 0}\n"
]
}
],
@@ -1722,15 +1513,15 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": 44,
"id": "fc97df37-34ff-4a02-9d26-b5d81b706e46",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-27T02:59:02.314552Z",
"iopub.status.busy": "2023-10-27T02:59:02.313742Z",
"iopub.status.idle": "2023-10-27T02:59:02.387081Z",
"shell.execute_reply": "2023-10-27T02:59:02.386535Z",
"shell.execute_reply.started": "2023-10-27T02:59:02.314476Z"
"iopub.execute_input": "2023-11-19T04:17:33.563101Z",
"iopub.status.busy": "2023-11-19T04:17:33.562639Z",
"iopub.status.idle": "2023-11-19T04:17:33.590068Z",
"shell.execute_reply": "2023-11-19T04:17:33.589642Z",
"shell.execute_reply.started": "2023-11-19T04:17:33.563065Z"
},
"tags": []
},
@@ -1739,14 +1530,14 @@
"name": "stdout",
"output_type": "stream",
"text": [
"20-24 {'不合格': 426, '合格': 240, '良好': 34, '优秀': 6}\n",
"25-29 {'不合格': 196, '良好': 34, '合格': 138, '优秀': 4}\n",
"30-34 {'不合格': 90, '合格': 59, '良好': 13, '优秀': 3}\n",
"35-39 {'不合格': 171, '良好': 33, '合格': 119, '优秀': 5}\n",
"40-44 {'不合格': 114, '合格': 103, '优秀': 6, '良好': 22}\n",
"45-49 {'合格': 179, '不合格': 245, '良好': 39, '优秀': 3}\n",
"50-54 {'合格': 345, '不合格': 502, '优秀': 22, '良好': 60}\n",
"55-80 {'合格': 217, '不合格': 312, '良好': 39, '优秀': 9}\n"
"20-24 {'合格': 42, '不合格': 19, '良好': 7}\n",
"25-29 {'合格': 37, '不合格': 22, '良好': 12, '优秀': 3}\n",
"30-34 {'不合格': 13, '合格': 25, '良好': 9, '优秀': 3}\n",
"35-39 {'良好': 20, '合格': 28, '不合格': 6, '优秀': 6}\n",
"40-44 {'合格': 13, '不合格': 2, '良好': 3, '优秀': 1}\n",
"45-49 {'不合格': 14, '良好': 14, '合格': 34, '优秀': 4}\n",
"50-54 {'良好': 36, '合格': 88, '不合格': 28, '优秀': 9}\n",
"55-80 {'合格': 31, '不合格': 13, '优秀': 7, '良好': 13}\n"
]
}
],
@@ -1789,15 +1580,15 @@
},
{
"cell_type": "code",
"execution_count": 24,
"execution_count": 50,
"id": "dafb86f8-5ee0-4c87-a98f-c7ff0f631fe5",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-27T02:42:53.065561Z",
"iopub.status.busy": "2023-10-27T02:42:53.065280Z",
"iopub.status.idle": "2023-10-27T02:42:53.141524Z",
"shell.execute_reply": "2023-10-27T02:42:53.140901Z",
"shell.execute_reply.started": "2023-10-27T02:42:53.065537Z"
"iopub.execute_input": "2023-11-19T04:28:21.844350Z",
"iopub.status.busy": "2023-11-19T04:28:21.843868Z",
"iopub.status.idle": "2023-11-19T04:28:21.870039Z",
"shell.execute_reply": "2023-11-19T04:28:21.868971Z",
"shell.execute_reply.started": "2023-11-19T04:28:21.844314Z"
},
"tags": []
},
@@ -1806,14 +1597,14 @@
"name": "stdout",
"output_type": "stream",
"text": [
"16~24岁平均成绩:2.47分,人数:1044人,男性:706人\n",
"25~29岁平均成绩:2.58分,人数:540人,男性:372人\n",
"30~34岁平均成绩:2.6分,人数:240人,男性:165人\n",
"35~39岁平均成绩:2.64分,人数:475人,男性:328人\n",
"40~44岁平均成绩:2.69分,人数:411人,男性:245人\n",
"45~49岁平均成绩:2.68分,人数:883人,男性:466人\n",
"50~54岁平均成绩:2.57分,人数:1213人,男性:929人\n",
"55~69岁平均成绩:2.48分,人数:577人,男性:577人\n"
"16~24岁平均成绩:2.76分,人数:82人,男性:68人\n",
"25~29岁平均成绩:2.87分,人数:99人,男性:74人\n",
"30~34岁平均成绩:2.97分,人数:71人,男性:50人\n",
"35~39岁平均成绩:3.11分,人数:76人,男性:60人\n",
"40~44岁平均成绩:3.1分,人数:27人,男性:19人\n",
"45~49岁平均成绩:3.06分,人数:104人,男性:66人\n",
"50~54岁平均成绩:3.0分,人数:174人,男性:161人\n",
"55~69岁平均成绩:3.02分,人数:64人,男性:64人\n"
]
}
],
@@ -1838,7 +1629,7 @@
" if i ==0:\n",
" print(f'{di}~{gao}岁平均成绩:0分,人数:0人,男性:{m}人')\n",
" else:\n",
" print(f'{di}~{gao}岁平均成绩:{round(score/i,2)}分,人数:{i-1}人,男性:{m}人')"
" print(f'{di}~{gao}岁平均成绩:{round(score/i,2)}分,人数:{i}人,男性:{m}人')"
]
},
{
@@ -1851,15 +1642,15 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": 46,
"id": "347703a1-501b-4800-bd29-16e94f4a6793",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-27T02:46:37.747375Z",
"iopub.status.busy": "2023-10-27T02:46:37.747078Z",
"iopub.status.idle": "2023-10-27T02:46:37.815689Z",
"shell.execute_reply": "2023-10-27T02:46:37.814984Z",
"shell.execute_reply.started": "2023-10-27T02:46:37.747349Z"
"iopub.execute_input": "2023-11-19T04:17:42.065624Z",
"iopub.status.busy": "2023-11-19T04:17:42.065169Z",
"iopub.status.idle": "2023-11-19T04:17:42.091612Z",
"shell.execute_reply": "2023-11-19T04:17:42.090300Z",
"shell.execute_reply.started": "2023-11-19T04:17:42.065589Z"
},
"tags": []
},
@@ -1868,14 +1659,14 @@
"name": "stdout",
"output_type": "stream",
"text": [
"20~24岁平均成绩:2.39分,人数:706人\n",
"25~29岁平均成绩:2.5分,人数:372人\n",
"30~34岁平均成绩:2.47分,人数:165人\n",
"35~39岁平均成绩:2.5分,人数:328人\n",
"40~44岁平均成绩:2.57分,人数:245人\n",
"45~49岁平均成绩:2.48分,人数:466人\n",
"50~54岁平均成绩:2.47分,人数:929人\n",
"55~80岁平均成绩:2.48分,人数:577人\n"
"20~24岁平均成绩:2.71分,人数:68人\n",
"25~29岁平均成绩:2.85分,人数:74人\n",
"30~34岁平均成绩:2.88分,人数:50人\n",
"35~39岁平均成绩:3.12分,人数:60人\n",
"40~44岁平均成绩:3.06分,人数:19人\n",
"45~49岁平均成绩:2.99分,人数:66人\n",
"50~54岁平均成绩:2.95分,人数:161人\n",
"55~80岁平均成绩:3.02分,人数:64人\n"
]
}
],
@@ -1913,15 +1704,15 @@
},
{
"cell_type": "code",
"execution_count": 27,
"execution_count": 47,
"id": "5900d1c7-2f8c-4dfa-a60e-a577fb90f22d",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-27T02:47:40.422207Z",
"iopub.status.busy": "2023-10-27T02:47:40.421915Z",
"iopub.status.idle": "2023-10-27T02:47:40.532803Z",
"shell.execute_reply": "2023-10-27T02:47:40.532106Z",
"shell.execute_reply.started": "2023-10-27T02:47:40.422184Z"
"iopub.execute_input": "2023-11-19T04:17:45.081877Z",
"iopub.status.busy": "2023-11-19T04:17:45.081422Z",
"iopub.status.idle": "2023-11-19T04:17:45.108226Z",
"shell.execute_reply": "2023-11-19T04:17:45.106800Z",
"shell.execute_reply.started": "2023-11-19T04:17:45.081832Z"
}
},
"outputs": [
@@ -1929,13 +1720,13 @@
"name": "stdout",
"output_type": "stream",
"text": [
"20~24岁平均成绩:2.65分,人数:338人\n",
"25~29岁平均成绩:2.74分,人数:168人\n",
"30~34岁平均成绩:2.88分,人数:75人\n",
"35~39岁平均成绩:2.95分,人数:147人\n",
"40~44岁平均成绩:2.85分,人数:166人\n",
"45~49岁平均成绩:2.9分,人数:417人\n",
"50~54岁平均成绩:2.89分,人数:284人\n",
"20~24岁平均成绩:2.99分,人数:14人\n",
"25~29岁平均成绩:2.92分,人数:25人\n",
"30~34岁平均成绩:3.17分,人数:21人\n",
"35~39岁平均成绩:3.08分,人数:16人\n",
"40~44岁平均成绩:3.21分,人数:8人\n",
"45~49岁平均成绩:3.17分,人数:38人\n",
"50~54岁平均成绩:3.6分,人数:13人\n",
"55~80岁平均成绩:0分,人数:0人\n"
]
}
@@ -1972,15 +1763,15 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 48,
"id": "ad69c45d-3f62-42df-894d-47424e759029",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-27T02:59:52.525939Z",
"iopub.status.busy": "2023-10-27T02:59:52.525661Z",
"iopub.status.idle": "2023-10-27T02:59:52.682642Z",
"shell.execute_reply": "2023-10-27T02:59:52.681750Z",
"shell.execute_reply.started": "2023-10-27T02:59:52.525915Z"
"iopub.execute_input": "2023-11-19T04:17:48.260107Z",
"iopub.status.busy": "2023-11-19T04:17:48.259591Z",
"iopub.status.idle": "2023-11-19T04:17:48.287981Z",
"shell.execute_reply": "2023-11-19T04:17:48.286662Z",
"shell.execute_reply.started": "2023-11-19T04:17:48.260070Z"
},
"tags": []
},
@@ -1989,16 +1780,16 @@
"name": "stdout",
"output_type": "stream",
"text": [
"BMI 3.53 5344\n",
"肺活量 3.3 5270\n",
"握力 1.36 5291\n",
"坐位体前屈 2.87 4581\n",
"纵跳 1.93 4632\n",
"俯卧撑 2.49 3085\n",
"一分钟仰卧起坐 3.85 1034\n",
"单脚站立 1.96 5180\n",
"选择反应时 2.93 5300\n",
"台阶指数 2.6 2164\n"
"BMI 3.63 697\n",
"肺活量 3.39 691\n",
"握力 2.18 692\n",
"坐位体前屈 2.76 668\n",
"纵跳 2.81 642\n",
"俯卧撑 3.19 499\n",
"一分钟仰卧起坐 3.89 108\n",
"单脚站立 2.63 684\n",
"选择反应时 3.43 694\n",
"台阶指数 2.69 540\n"
]
}
],
@@ -2026,15 +1817,15 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": 49,
"id": "dcf152e7-bbcc-47d1-9c5f-83854db35412",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-27T03:04:24.035897Z",
"iopub.status.busy": "2023-10-27T03:04:24.035597Z",
"iopub.status.idle": "2023-10-27T03:04:24.127211Z",
"shell.execute_reply": "2023-10-27T03:04:24.126568Z",
"shell.execute_reply.started": "2023-10-27T03:04:24.035871Z"
"iopub.execute_input": "2023-11-19T04:17:52.977121Z",
"iopub.status.busy": "2023-11-19T04:17:52.976658Z",
"iopub.status.idle": "2023-11-19T04:17:53.002780Z",
"shell.execute_reply": "2023-11-19T04:17:53.001310Z",
"shell.execute_reply.started": "2023-11-19T04:17:52.977084Z"
},
"tags": []
},
@@ -2043,26 +1834,25 @@
"name": "stdout",
"output_type": "stream",
"text": [
"化验计量部 2.56 469\n",
"南港烯烃部 2.48 681\n",
"消防支队 2.52 72\n",
"炼油部 2.63 1191\n",
"化工部 2.58 522\n",
"电仪部 2.4 322\n",
"物资采购中心 2.67 84\n",
"水务部 2.53 396\n",
"运输销售部 2.44 199\n",
"原油储运部 2.5 178\n",
"聚醚部 2.63 112\n",
"公司机关 2.65 112\n",
"南港乙烯项目管理部 2.61 15\n",
"党委党校(培训中心) 2.79 48\n",
"装备研究院 2.71 48\n",
"热电部 2.63 412\n",
"烯烃部 2.63 320\n",
"行政事务中心 2.6 41\n",
"信息档案管理中心 2.84 60\n",
"研究院 2.82 101\n"
"储运部 2.97 88\n",
"电气仪表中心 3.03 26\n",
"炼油二部 2.94 125\n",
"炼油三部 2.92 76\n",
"炼油一部 2.97 114\n",
"安全环保部 2.72 15\n",
"检验计量中心 3.03 76\n",
"设备工程部 2.97 21\n",
"公用工程部 2.96 44\n",
"新上岗 2.72 25\n",
"行政事务中心 2.95 4\n",
"公司领导 3.33 4\n",
"党群工作部 3.27 10\n",
"发展计划部 3.07 14\n",
"物资采购中心 3.1 13\n",
"党委组织部 3.3 7\n",
"生产技术部 3.05 19\n",
"财务资产部 3.31 11\n",
"办公室 3.33 5\n"
]
}
],
+84 -29
View File
@@ -1063,28 +1063,12 @@
},
{
"cell_type": "code",
"execution_count": 100,
"execution_count": null,
"id": "1aa45b35-7376-4c50-8275-79b090a6c758",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-16T08:39:54.051678Z",
"iopub.status.busy": "2023-11-16T08:39:54.051221Z",
"iopub.status.idle": "2023-11-16T08:39:54.140085Z",
"shell.execute_reply": "2023-11-16T08:39:54.139600Z",
"shell.execute_reply.started": "2023-11-16T08:39:54.051641Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"697\n",
"697\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"import time\n",
@@ -1104,7 +1088,7 @@
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
"filename = 'data/places_result_20231114.csv'\n",
"filename = 'data/places_result_20231119.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n",
@@ -1199,16 +1183,9 @@
},
{
"cell_type": "code",
"execution_count": 101,
"execution_count": null,
"id": "c0128f52-8697-4258-aba0-89a522fb9cc0",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-16T08:39:58.488835Z",
"iopub.status.busy": "2023-11-16T08:39:58.488433Z",
"iopub.status.idle": "2023-11-16T08:39:58.584720Z",
"shell.execute_reply": "2023-11-16T08:39:58.584247Z",
"shell.execute_reply.started": "2023-11-16T08:39:58.488803Z"
},
"tags": []
},
"outputs": [],
@@ -1232,7 +1209,7 @@
" if 'phone' in v.keys():\n",
" phone[v['phone']] = k\n",
"list1 = []\n",
"filename = 'data/Survey_20231114.csv'\n",
"filename = 'data/Survey_20231119.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n",
@@ -1391,10 +1368,88 @@
"wb.save(filename) "
]
},
{
"cell_type": "markdown",
"id": "cd06cd33-668f-4b5a-8c98-587d503a39eb",
"metadata": {},
"source": [
"## 统计手机号码不明确人员"
]
},
{
"cell_type": "code",
"execution_count": 108,
"id": "6faef501-54eb-436b-8c51-093a05c38686",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-19T04:47:58.763430Z",
"iopub.status.busy": "2023-11-19T04:47:58.763036Z",
"iopub.status.idle": "2023-11-19T04:47:58.849448Z",
"shell.execute_reply": "2023-11-19T04:47:58.848994Z",
"shell.execute_reply.started": "2023-11-19T04:47:58.763379Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"18610346996\n",
"13210047238\n",
"13397798753\n",
"17261940944\n",
"18177994725\n",
"17777918502\n",
"19377997709\n",
"15677905862\n",
"15133906281\n",
"15207800631\n",
"18177980276\n",
"13398691539\n",
"18177981289\n",
"19377992679\n",
"18169792763\n"
]
}
],
"source": [
"import json\n",
"import csv\n",
"import openpyxl\n",
"import time\n",
"from datetime import date\n",
"\n",
"filename = 'data/result_北海炼化2023.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
"filename = 'data/北海炼化2023年.json'\n",
"with open(filename,'r') as fl:\n",
" dict3 = json.load(fl)\n",
"\n",
"phone = {}\n",
"for k,v in dict3.items():\n",
" if 'phone' in v.keys():\n",
" phone[v['phone']] = k\n",
"list1 = []\n",
"filename = 'data/Survey_20231119.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n",
" for line in fl:\n",
" list1.append(line)\n",
"\n",
"for item in list1:\n",
" if item[2] not in phone.keys():\n",
" print(item[2])\n",
" "
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "7fdcbcc9-361b-4304-98b5-e16639801742",
"id": "d206f455-8563-405e-a00f-e8f055e266a0",
"metadata": {},
"outputs": [],
"source": []