This commit is contained in:
512song committed 2024-06-13 13:44:25 +08:00
1 parent 76487f10e8
commit f44b30e86f
4 files changed
+3702 -1138

No files matched your search

+345 -27
View File
@@ -15,13 +15,105 @@
"cell_type": "markdown", "cell_type": "markdown",
"id": "112d80f4-607b-41f9-bb30-ac2eb8f52ee2", "id": "112d80f4-607b-41f9-bb30-ac2eb8f52ee2",
"metadata": { "metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": [] "tags": []
}, },
"source": [ "source": [
"## 基础数据管理" "## 基础数据管理"
] ]
}, },
{
"cell_type": "markdown",
"id": "9a06725f-248b-44dd-b029-c18e7c0689ee",
"metadata": {},
"source": [
"### 体测数据按编号汇总"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "47aa588c-1880-44a8-add0-6fad777065d6",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-12T09:11:49.898532Z",
"iopub.status.busy": "2024-06-12T09:11:49.897811Z",
"iopub.status.idle": "2024-06-12T09:11:49.930322Z",
"shell.execute_reply": "2024-06-12T09:11:49.929864Z",
"shell.execute_reply.started": "2024-06-12T09:11:49.898469Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"51\n"
]
}
],
"source": [
"import json\n",
"import time\n",
"import csv\n",
"\n",
"filename = '../item.json'\n",
"item = {}\n",
"bh = set()\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"for k,v in dict1.items():\n",
" item[k] = v\n",
"re_ta = {}\n",
"dict1 = {}\n",
"list1 = []\n",
"list2 = []\n",
"rq = '20240612'\n",
"filename = f'data/places_result_{rq}.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",
" #line = re.sub('[\\r\\n\\f ]{1,}', '', line)\n",
" list1.append(line)\n",
" bh.add(line[2])\n",
" \n",
"#print(list1)\n",
"for result in list1:\n",
" user = str(result[2])\n",
" \n",
" m_item = str(result[3]) \n",
" re_ta.setdefault(user,{}) \n",
" \n",
" item_name = item[m_item]['name']\n",
" re_ta[user].setdefault(item_name,{}) \n",
" 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",
"\n",
"\n",
"items = ['身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
"title = ['编号','身高','体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
"list1 = []\n",
"for k, v in re_ta.items():\n",
" list2 = []\n",
" list2.append(str(k))\n",
" for item in items:\n",
" if item in v.keys():\n",
" list2.append(v[item]['成绩']) \n",
" elif item =='name':\n",
" list2.append(v[item])\n",
" else:\n",
" list2.append('') \n",
" list1.append(list2)\n",
"filename = f'data/长炼医院体测情况表({rq}).xlsx'\n",
"wb = openpyxl.Workbook()\n",
"sheet = wb.active\n",
"sheet.append(title)\n",
"for row in list1:\n",
" sheet.append(row)\n",
"wb.save(filename)"
]
},
{ {
"cell_type": "markdown", "cell_type": "markdown",
"id": "b7dfd50f-a614-497d-8f0a-fa1e4c89168a", "id": "b7dfd50f-a614-497d-8f0a-fa1e4c89168a",
@@ -1508,16 +1600,32 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 15,
"id": "46aa847d-e1fe-45bd-85b6-e2d792ec8842", "id": "46aa847d-e1fe-45bd-85b6-e2d792ec8842",
"metadata": {}, "metadata": {
"outputs": [], "execution": {
"iopub.execute_input": "2024-06-13T05:09:32.204611Z",
"iopub.status.busy": "2024-06-13T05:09:32.203867Z",
"iopub.status.idle": "2024-06-13T05:09:32.254750Z",
"shell.execute_reply": "2024-06-13T05:09:32.254194Z",
"shell.execute_reply.started": "2024-06-13T05:09:32.204544Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ok!\n"
]
}
],
"source": [ "source": [
"import json\n", "import json\n",
"import openpyxl\n", "import openpyxl\n",
"\n", "\n",
"\n", "\n",
"filename = 'data/result_北海炼化2023.json'\n", "filename = 'data/result_中安联合.json'\n",
"with open(filename,'r') as fl:\n", "with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n", " dict1 = json.load(fl)\n",
"\n", "\n",
@@ -1537,7 +1645,7 @@
"\n", "\n",
"\n", "\n",
"list1 = []\n", "list1 = []\n",
"fiie_path ='./138/'\n", "#fiie_path ='./138/'\n",
"list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp','bmi']\n", "list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp','bmi']\n",
"i=1\n", "i=1\n",
"list2 = []\n", "list2 = []\n",
@@ -1570,7 +1678,7 @@
" mydata['score'] = round(score/len(mydata['fits']),2)\n", " mydata['score'] = round(score/len(mydata['fits']),2)\n",
" if len(mydata['fits']) >2:\n", " if len(mydata['fits']) >2:\n",
" dict2[str(k)] = mydata\n", " dict2[str(k)] = mydata\n",
"filename = f'data/data_北海炼化2023.json'\n", "filename = f'data/data_中安联合.json'\n",
"with open(filename,'w') as fl:\n", "with open(filename,'w') as fl:\n",
" json.dump(dict2,fl , ensure_ascii=False) \n", " json.dump(dict2,fl , ensure_ascii=False) \n",
"print('ok!') " "print('ok!') "
@@ -1586,15 +1694,32 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 16,
"id": "63edd636-f034-4aa6-8575-63d5cdb84adb", "id": "63edd636-f034-4aa6-8575-63d5cdb84adb",
"metadata": { "metadata": {
"execution": {
"iopub.execute_input": "2024-06-13T05:10:12.371475Z",
"iopub.status.busy": "2024-06-13T05:10:12.370716Z",
"iopub.status.idle": "2024-06-13T05:10:12.388967Z",
"shell.execute_reply": "2024-06-13T05:10:12.388430Z",
"shell.execute_reply.started": "2024-06-13T05:10:12.371406Z"
},
"tags": [] "tags": []
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"平均成绩:2.8023分,男性:566人\n",
"平均成绩:3.216分,女性:143人\n",
"平均成绩:2.8858分,总体:709人\n"
]
}
],
"source": [ "source": [
"nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n", "nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n",
"filename = 'data/data_长炼医院.json'\n", "filename = 'data/data_中安联合.json'\n",
"with open(filename,'r') as fl:\n", "with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n", " dict1 = json.load(fl) \n",
"i = 1\n", "i = 1\n",
@@ -1628,18 +1753,38 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 17,
"id": "1b4a3f02-9b2e-41fc-ac6c-8163907a07f1", "id": "1b4a3f02-9b2e-41fc-ac6c-8163907a07f1",
"metadata": { "metadata": {
"execution": {
"iopub.execute_input": "2024-06-13T05:14:51.442511Z",
"iopub.status.busy": "2024-06-13T05:14:51.441746Z",
"iopub.status.idle": "2024-06-13T05:14:51.479067Z",
"shell.execute_reply": "2024-06-13T05:14:51.478465Z",
"shell.execute_reply.started": "2024-06-13T05:14:51.442442Z"
},
"tags": [] "tags": []
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0~255分人数:171人,男性:161人,女性:10人\n",
"256~332分人数:359人,男性:296人,女性:63人\n",
"333~367分人数:135人,男性:83人,女性:52人\n",
"368~500分人数:44人,男性:26人,女性:18人\n",
"709\n",
"ok\n"
]
}
],
"source": [ "source": [
"import json\n", "import json\n",
"\n", "\n",
"items = ['体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n", "items = ['体重','肺活量','握力','坐位体前屈','纵跳','俯卧撑','一分钟仰卧起坐','单脚站立','选择反应时','台阶指数']\n",
"\n", "\n",
"filename = 'data/data_长炼医院.json'\n", "#filename = 'data/data_长炼医院.json'\n",
"with open(filename,'r') as fl:\n", "with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n", " dict1 = json.load(fl) \n",
"dict2 = {}\n", "dict2 = {}\n",
@@ -1679,12 +1824,34 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 18,
"id": "2d661ca6-6129-4da1-ac25-51d0156babb2", "id": "2d661ca6-6129-4da1-ac25-51d0156babb2",
"metadata": { "metadata": {
"execution": {
"iopub.execute_input": "2024-06-13T05:15:48.332407Z",
"iopub.status.busy": "2024-06-13T05:15:48.331591Z",
"iopub.status.idle": "2024-06-13T05:15:48.345913Z",
"shell.execute_reply": "2024-06-13T05:15:48.345319Z",
"shell.execute_reply.started": "2024-06-13T05:15:48.332331Z"
},
"tags": [] "tags": []
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"20-24 {'不合格': 8, '合格': 11, '良好': 7, '优秀': 1}\n",
"25-29 {'合格': 23, '不合格': 0, '良好': 13, '优秀': 4}\n",
"30-34 {'合格': 15, '良好': 13, '不合格': 1, '优秀': 4}\n",
"35-39 {'不合格': 0, '合格': 4, '良好': 9, '优秀': 2}\n",
"40-44 {'合格': 1, '不合格': 1, '良好': 3, '优秀': 2}\n",
"45-49 {'良好': 6, '合格': 8, '不合格': 0, '优秀': 1}\n",
"50-54 {'优秀': 4, '良好': 1, '合格': 1, '不合格': 0}\n",
"55-80 {'良好': 0, '优秀': 0, '不合格': 0, '合格': 0}\n"
]
}
],
"source": [ "source": [
"nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n", "nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n",
"\n", "\n",
@@ -1724,12 +1891,34 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 19,
"id": "fc97df37-34ff-4a02-9d26-b5d81b706e46", "id": "fc97df37-34ff-4a02-9d26-b5d81b706e46",
"metadata": { "metadata": {
"execution": {
"iopub.execute_input": "2024-06-13T05:16:40.847731Z",
"iopub.status.busy": "2024-06-13T05:16:40.846984Z",
"iopub.status.idle": "2024-06-13T05:16:40.868388Z",
"shell.execute_reply": "2024-06-13T05:16:40.867842Z",
"shell.execute_reply.started": "2024-06-13T05:16:40.847661Z"
},
"tags": [] "tags": []
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"20-24 {'不合格': 37, '合格': 45, '良好': 9, '优秀': 0}\n",
"25-29 {'合格': 110, '不合格': 69, '良好': 12, '优秀': 1}\n",
"30-34 {'合格': 47, '良好': 10, '不合格': 25, '优秀': 0}\n",
"35-39 {'不合格': 12, '合格': 22, '良好': 9, '优秀': 9}\n",
"40-44 {'合格': 19, '不合格': 6, '良好': 8, '优秀': 3}\n",
"45-49 {'良好': 11, '合格': 32, '不合格': 6, '优秀': 1}\n",
"50-54 {'优秀': 7, '良好': 13, '合格': 10, '不合格': 3}\n",
"55-80 {'良好': 11, '优秀': 5, '不合格': 3, '合格': 11}\n"
]
}
],
"source": [ "source": [
"nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n", "nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n",
"\n", "\n",
@@ -1769,12 +1958,34 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 20,
"id": "dafb86f8-5ee0-4c87-a98f-c7ff0f631fe5", "id": "dafb86f8-5ee0-4c87-a98f-c7ff0f631fe5",
"metadata": { "metadata": {
"execution": {
"iopub.execute_input": "2024-06-13T05:18:41.529045Z",
"iopub.status.busy": "2024-06-13T05:18:41.528337Z",
"iopub.status.idle": "2024-06-13T05:18:41.549760Z",
"shell.execute_reply": "2024-06-13T05:18:41.548768Z",
"shell.execute_reply.started": "2024-06-13T05:18:41.528978Z"
},
"tags": [] "tags": []
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"16~24岁平均成绩:2.66分,人数:118人,男性:91人\n",
"25~29岁平均成绩:2.76分,人数:232人,男性:192人\n",
"30~34岁平均成绩:2.86分,人数:115人,男性:82人\n",
"35~39岁平均成绩:3.12分,人数:67人,男性:52人\n",
"40~44岁平均成绩:3.0分,人数:43人,男性:36人\n",
"45~49岁平均成绩:3.02分,人数:65人,男性:50人\n",
"50~54岁平均成绩:3.37分,人数:39人,男性:33人\n",
"55~69岁平均成绩:3.25分,人数:30人,男性:30人\n"
]
}
],
"source": [ "source": [
"nld = [[16,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,69]]\n", "nld = [[16,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,69]]\n",
"\n", "\n",
@@ -1809,12 +2020,34 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 23,
"id": "347703a1-501b-4800-bd29-16e94f4a6793", "id": "347703a1-501b-4800-bd29-16e94f4a6793",
"metadata": { "metadata": {
"execution": {
"iopub.execute_input": "2024-06-13T05:23:58.151945Z",
"iopub.status.busy": "2024-06-13T05:23:58.151212Z",
"iopub.status.idle": "2024-06-13T05:23:58.169300Z",
"shell.execute_reply": "2024-06-13T05:23:58.168282Z",
"shell.execute_reply.started": "2024-06-13T05:23:58.151877Z"
},
"tags": [] "tags": []
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"20~24岁平均成绩:2.61分,人数:91人\n",
"25~29岁平均成绩:2.67分,人数:192人\n",
"30~34岁平均成绩:2.69分,人数:82人\n",
"35~39岁平均成绩:3.02分,人数:52人\n",
"40~44岁平均成绩:2.92分,人数:36人\n",
"45~49岁平均成绩:2.96分,人数:50人\n",
"50~54岁平均成绩:3.29分,人数:33人\n",
"55~80岁平均成绩:3.25分,人数:30人\n"
]
}
],
"source": [ "source": [
"import json\n", "import json\n",
"\n", "\n",
@@ -1849,12 +2082,34 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 24,
"id": "5900d1c7-2f8c-4dfa-a60e-a577fb90f22d", "id": "5900d1c7-2f8c-4dfa-a60e-a577fb90f22d",
"metadata": { "metadata": {
"execution": {
"iopub.execute_input": "2024-06-13T05:24:23.022565Z",
"iopub.status.busy": "2024-06-13T05:24:23.022002Z",
"iopub.status.idle": "2024-06-13T05:24:23.043238Z",
"shell.execute_reply": "2024-06-13T05:24:23.042535Z",
"shell.execute_reply.started": "2024-06-13T05:24:23.022513Z"
},
"tags": [] "tags": []
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"20~24岁平均成绩:2.86分,人数:27人\n",
"25~29岁平均成绩:3.19分,人数:40人\n",
"30~34岁平均成绩:3.29分,人数:33人\n",
"35~39岁平均成绩:3.45分,人数:15人\n",
"40~44岁平均成绩:3.4分,人数:7人\n",
"45~49岁平均成绩:3.2分,人数:15人\n",
"50~54岁平均成绩:3.82分,人数:6人\n",
"55~80岁平均成绩:0分,人数:0人\n"
]
}
],
"source": [ "source": [
"nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n", "nld = [[20,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,80]]\n",
"\n", "\n",
@@ -1887,12 +2142,36 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 21,
"id": "ad69c45d-3f62-42df-894d-47424e759029", "id": "ad69c45d-3f62-42df-894d-47424e759029",
"metadata": { "metadata": {
"execution": {
"iopub.execute_input": "2024-06-13T05:20:24.418670Z",
"iopub.status.busy": "2024-06-13T05:20:24.417910Z",
"iopub.status.idle": "2024-06-13T05:20:24.434900Z",
"shell.execute_reply": "2024-06-13T05:20:24.434312Z",
"shell.execute_reply.started": "2024-06-13T05:20:24.418603Z"
},
"tags": [] "tags": []
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"BMI 3.48 706\n",
"肺活量 3.33 707\n",
"握力 2.33 706\n",
"坐位体前屈 3.07 692\n",
"纵跳 2.94 685\n",
"俯卧撑 2.56 542\n",
"一分钟仰卧起坐 4.01 134\n",
"单脚站立 2.74 700\n",
"选择反应时 2.89 707\n",
"台阶指数 2.29 652\n"
]
}
],
"source": [ "source": [
"with open(filename,'r') as fl:\n", "with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n", " dict1 = json.load(fl) \n",
@@ -1917,12 +2196,51 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 22,
"id": "dcf152e7-bbcc-47d1-9c5f-83854db35412", "id": "dcf152e7-bbcc-47d1-9c5f-83854db35412",
"metadata": { "metadata": {
"execution": {
"iopub.execute_input": "2024-06-13T05:20:27.455180Z",
"iopub.status.busy": "2024-06-13T05:20:27.454431Z",
"iopub.status.idle": "2024-06-13T05:20:27.477168Z",
"shell.execute_reply": "2024-06-13T05:20:27.476614Z",
"shell.execute_reply.started": "2024-06-13T05:20:27.455096Z"
},
"tags": [] "tags": []
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"煤气化部气化装置 2.7 82\n",
"煤气化部空分装置 2.79 43\n",
"烯烃部 2.8 171\n",
"安全环保部 3.56 11\n",
"企管法律部 3.06 4\n",
"储运部 3.18 19\n",
"供销部 3.15 13\n",
"原料成品区 2.84 20\n",
"党群工作部(党委办公室) 3.04 9\n",
"分检中心机关 3.52 8\n",
"公用工程分析区 3.23 11\n",
"甲醇部 2.87 100\n",
"财务资产部 3.17 9\n",
"甲醇分析区 2.66 12\n",
"公用工程部 2.81 105\n",
"煤气化部 3.37 6\n",
"综合管理部 3.04 6\n",
"电仪中心 3.15 16\n",
"烯烃分析区 2.81 14\n",
"生产计划部 3.17 14\n",
"技术质量部 3.05 14\n",
"监督审计部 3.17 3\n",
"党委组织部(人力资源部) 3.12 6\n",
"生产经营部 3.33 3\n",
"设备工程部 2.89 10\n"
]
}
],
"source": [ "source": [
"with open(filename,'r') as fl:\n", "with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n", " dict1 = json.load(fl) \n",
+1 -1
View File
@@ -2507,7 +2507,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.10.12" "version": "3.12.3"
} }
}, },
"nbformat": 4, "nbformat": 4,
+622 -24
View File
@@ -59,15 +59,15 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 23, "execution_count": 8,
"id": "482517fc-650c-4b8c-bdf3-b32ec508de99", "id": "482517fc-650c-4b8c-bdf3-b32ec508de99",
"metadata": { "metadata": {
"execution": { "execution": {
"iopub.execute_input": "2024-05-15T13:07:24.819627Z", "iopub.execute_input": "2024-06-12T09:32:43.937514Z",
"iopub.status.busy": "2024-05-15T13:07:24.819154Z", "iopub.status.busy": "2024-06-12T09:32:43.936781Z",
"iopub.status.idle": "2024-05-15T13:07:24.853597Z", "iopub.status.idle": "2024-06-12T09:32:43.965201Z",
"shell.execute_reply": "2024-05-15T13:07:24.852934Z", "shell.execute_reply": "2024-06-12T09:32:43.964613Z",
"shell.execute_reply.started": "2024-05-15T13:07:24.819589Z" "shell.execute_reply.started": "2024-06-12T09:32:43.937449Z"
}, },
"tags": [] "tags": []
}, },
@@ -580,15 +580,15 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 8, "execution_count": 9,
"id": "67e63f07-3f20-4e0e-9c07-7bf6024eeb4b", "id": "67e63f07-3f20-4e0e-9c07-7bf6024eeb4b",
"metadata": { "metadata": {
"execution": { "execution": {
"iopub.execute_input": "2024-05-20T06:58:40.070876Z", "iopub.execute_input": "2024-06-12T09:33:33.449532Z",
"iopub.status.busy": "2024-05-20T06:58:40.070141Z", "iopub.status.busy": "2024-06-12T09:33:33.448794Z",
"iopub.status.idle": "2024-05-20T06:58:40.090900Z", "iopub.status.idle": "2024-06-12T09:33:33.470858Z",
"shell.execute_reply": "2024-05-20T06:58:40.090430Z", "shell.execute_reply": "2024-06-12T09:33:33.470068Z",
"shell.execute_reply.started": "2024-05-20T06:58:40.070810Z" "shell.execute_reply.started": "2024-06-12T09:33:33.449463Z"
}, },
"tags": [] "tags": []
}, },
@@ -600,7 +600,7 @@
"18993710898\n", "18993710898\n",
"18894239366\n", "18894239366\n",
"13801023617\n", "13801023617\n",
"18093715391\n" "19009775378\n"
] ]
} }
], ],
@@ -624,7 +624,7 @@
" if 'phone' in v.keys():\n", " if 'phone' in v.keys():\n",
" phone[v['phone']] = k\n", " phone[v['phone']] = k\n",
"list1 = []\n", "list1 = []\n",
"filename = 'data/Survey_20240520.csv'\n", "filename = 'data/Survey_20240612.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n", "with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n", " fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n", " header = next(fl) \n",
@@ -708,15 +708,15 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 28, "execution_count": 10,
"id": "9e96d70b-3f7c-4c55-8c7a-f8373c2d9a7a", "id": "9e96d70b-3f7c-4c55-8c7a-f8373c2d9a7a",
"metadata": { "metadata": {
"execution": { "execution": {
"iopub.execute_input": "2024-05-15T13:07:55.856136Z", "iopub.execute_input": "2024-06-12T09:36:27.538771Z",
"iopub.status.busy": "2024-05-15T13:07:55.855609Z", "iopub.status.busy": "2024-06-12T09:36:27.538043Z",
"iopub.status.idle": "2024-05-15T13:08:05.986751Z", "iopub.status.idle": "2024-06-12T09:36:46.165927Z",
"shell.execute_reply": "2024-05-15T13:08:05.985596Z", "shell.execute_reply": "2024-06-12T09:36:46.164846Z",
"shell.execute_reply.started": "2024-05-15T13:07:55.856096Z" "shell.execute_reply.started": "2024-06-12T09:36:27.538707Z"
}, },
"tags": [] "tags": []
}, },
@@ -725,7 +725,7 @@
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"30\n" "35\n"
] ]
} }
], ],
@@ -738,11 +738,11 @@
"headers = {\n", "headers = {\n",
" \"Content-Type\": \"application/json; charset=UTF-8\"\n", " \"Content-Type\": \"application/json; charset=UTF-8\"\n",
" }\n", " }\n",
"filename = 'data/result_青海all_1.json'\n", "filename = 'data/result_青海all_2.json'\n",
"with open(filename,'r') as fl:\n", "with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n", " dict1 = json.load(fl)\n",
"list1 = []\n", "list1 = []\n",
"file_path ='./青海/'\n", "file_path ='./青海1/'\n",
"list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp','bmi']\n", "list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp','bmi']\n",
"i=0\n", "i=0\n",
"list2 = []\n", "list2 = []\n",
@@ -972,10 +972,608 @@
"wb.save(filename) " "wb.save(filename) "
] ]
}, },
{
"cell_type": "markdown",
"id": "5274f18f-c63b-4bfa-9222-d1586c42fac2",
"metadata": {},
"source": [
"## 筛选家属人员"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "3cc922d2-9a1f-4aa6-8011-5541fe2e9715",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-12T10:09:49.493466Z",
"iopub.status.busy": "2024-06-12T10:09:49.492704Z",
"iopub.status.idle": "2024-06-12T10:09:49.504610Z",
"shell.execute_reply": "2024-06-12T10:09:49.503561Z",
"shell.execute_reply.started": "2024-06-12T10:09:49.493398Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ok\n"
]
}
],
"source": [
"import json\n",
"\n",
"dict3 = {}\n",
"filename = 'data/青海.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"filename = 'data/青海2024.json'\n",
"with open(filename,'r') as fl:\n",
" dict2 = json.load(fl)\n",
"\n",
"for k, v in dict1.items():\n",
" if k not in dict2.keys():\n",
" dict3[k] = v\n",
"filename = 'data/青海_家属.json'\n",
"with open(filename, 'w') as fl:\n",
" json.dump(dict3, fl, ensure_ascii=False)\n",
"print('ok')"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "804f1cf0-c2e6-4c4d-841b-1cc5e25c35f7",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-12T10:11:46.968562Z",
"iopub.status.busy": "2024-06-12T10:11:46.967823Z",
"iopub.status.idle": "2024-06-12T10:11:46.982324Z",
"shell.execute_reply": "2024-06-12T10:11:46.981223Z",
"shell.execute_reply.started": "2024-06-12T10:11:46.968493Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"14\n",
"14\n"
]
}
],
"source": [
"import json\n",
"import time\n",
"import csv\n",
"\n",
"filename = '../item.json'\n",
"item = {}\n",
"unit = {}\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"for k,v in dict1.items():\n",
" item[k] = v\n",
"re_ta = {}\n",
"dict1 = {}\n",
"list1 = []\n",
"filename = 'data/青海_家属.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
"filename = 'data/places_result_20240311.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",
" #line = re.sub('[\\r\\n\\f ]{1,}', '', line)\n",
" list1.append(line)\n",
"#print(list1)\n",
"for result in list1:\n",
" user = str(result[2])\n",
" if user in dict1.keys(): \n",
" m_item = str(result[3]) \n",
" re_ta.setdefault(user,{}) \n",
" re_ta[user]['name'] = dict1[user]['name']\n",
" re_ta[user]['sex'] = dict1[user]['sex'] \n",
" re_ta[user]['unit'] = dict1[user]['unit']\n",
" item_name = item[m_item]['name']\n",
" re_ta[user].setdefault(item_name,{}) \n",
" 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",
"\n",
"with open(filename,'w') as fl:\n",
" json.dump(re_ta, fl, ensure_ascii=False) \n",
"print(len(re_ta))"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "0faf3ee7-e075-42bd-84ca-aea2b4ee890e",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-12T10:13:41.889274Z",
"iopub.status.busy": "2024-06-12T10:13:41.887953Z",
"iopub.status.idle": "2024-06-12T10:13:41.903763Z",
"shell.execute_reply": "2024-06-12T10:13:41.903073Z",
"shell.execute_reply.started": "2024-06-12T10:13:41.889194Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"14\n",
"14\n"
]
}
],
"source": [
"import json\n",
"import datetime\n",
"import csv\n",
"from datetime import date\n",
"\n",
"filename = '../item.json'\n",
"item = {}\n",
"unit = {}\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"for k,v in dict1.items():\n",
" item[k] = v\n",
"item['1']['en'] = 'lung'\n",
"item['2']['en'] = 'grip'\n",
"item['3']['en'] = 'flexion'\n",
"item['4']['en'] = 'jump'\n",
"item['5']['en'] = 'pushup'\n",
"item['6']['en'] = 'balance'\n",
"item['7']['en'] = 'reaction'\n",
"item['8']['en'] = 'step'\n",
"item['9']['en'] = 'situp'\n",
"item['10']['en'] = 'height'\n",
"item['11']['en'] = 'weight'\n",
"\n",
"\n",
"re_ta = {}\n",
"dict1 = {}\n",
"list1 = []\n",
"filename = 'data/青海_家属.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
"filename = 'data/places_result_20240311.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",
" #line = re.sub('[\\r\\n\\f ]{1,}', '', line)\n",
" list1.append(line)\n",
"#f_item = ['lung','grip','flexion','jump','balance','reaction','step','situp']\n",
"#m_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step']\n",
"for result in list1:\n",
" user = str(result[2])\n",
" rq = date.fromisoformat(result[6].replace('/','-'))\n",
" if user in dict1.keys():\n",
" l_xm = []\n",
" m_item = str(result[3]) \n",
" re_ta.setdefault(user,{}) \n",
" re_ta[user]['name'] = dict1[user]['name']\n",
" re_ta[user]['sex'] = dict1[user]['sex']\n",
" if dict1[user]['sex'] == '男':\n",
" l_xm = ['weight','height','lung','grip','flexion','jump','pushup','balance','reaction','step']\n",
" else:\n",
" l_xm = ['weight','height','lung','grip','flexion','jump','balance','reaction','step','situp']\n",
" re_ta[user]['unit'] = dict1[user]['unit']\n",
" #birth = date.fromisoformat(dict1[user]['birth'].replace('/','-'))\n",
" birth = date.fromisoformat(dict1[user]['birth'])\n",
" #nian = int(birth[0].strip())\n",
" #yue = int(birth[1].strip())\n",
" #ri = int(birth[2].strip())\n",
" #print(k,nian,yue,ri)\n",
" item_name = item[m_item]['en'] \n",
" if item_name in l_xm: \n",
" days = (rq-birth).days \n",
" re_ta[user]['age'] = int(days/365)\n",
" re_ta[user]['month'] = int(days/365*12)\n",
" re_ta[user]['rq'] = result[6]\n",
"\n",
"\n",
" re_ta[user].setdefault(item_name,{}) \n",
" 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",
"\n",
"with open(filename,'w') as fl:\n",
" json.dump(re_ta, fl, ensure_ascii=False) \n",
"print(len(re_ta))"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "62863430-1d61-4282-b500-7261c66ec176",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-12T10:15:13.832706Z",
"iopub.status.busy": "2024-06-12T10:15:13.831999Z",
"iopub.status.idle": "2024-06-12T10:15:13.851428Z",
"shell.execute_reply": "2024-06-12T10:15:13.850214Z",
"shell.execute_reply.started": "2024-06-12T10:15:13.832645Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ok!\n"
]
}
],
"source": [
"import json\n",
"import time\n",
"\n",
"filename = '../item.json'\n",
"item = {}\n",
"unit = {}\n",
"with open(filename,'r') as fl:\n",
" dict3 = json.load(fl) \n",
"for k,v in dict3.items():\n",
" item[k] = v\n",
"item['1']['en'] = 'lung'\n",
"item['2']['en'] = 'grip'\n",
"item['3']['en'] = 'flexion'\n",
"item['4']['en'] = 'jump'\n",
"item['5']['en'] = 'pushup'\n",
"item['6']['en'] = 'balance'\n",
"item['7']['en'] = 'reaction'\n",
"item['8']['en'] = 'step'\n",
"item['9']['en'] = 'situp'\n",
"item['10']['en'] = 'height'\n",
"item['11']['en'] = 'weight'\n",
"\n",
"filename = 'data/体质检测标准 (1).json' \n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"\n",
"\n",
"\n",
"def cal_score(data1):\n",
" #data = {'name':'张三','sex':'M','age':37,'item':'StepExperiment','result':46} \n",
" person = dict1['person']\n",
" criteria = dict1['criteria']\n",
" if data1['age'] >59:\n",
" data1['age'] = 59\n",
" if data1['age'] <20:\n",
" data1['age'] = 20\n",
" info = data1['sex']+str(data1['age'])\n",
" bz = person[info]\n",
" mx = criteria[bz][data1['item']]\n",
" result = data1['result'] \n",
" if data1['item'] == 'reaction':\n",
" for bz1 in mx:\n",
" if result > bz1:\n",
" #print(bz1)\n",
" score = mx.index(bz1,0)\n",
" break\n",
" else:\n",
" score = 5\n",
" else:\n",
" for bz1 in mx:\n",
" if result < bz1:\n",
" #print(bz1)\n",
" score = mx.index(bz1,0)\n",
" break\n",
" else:\n",
" score = 5\n",
" return(score)\n",
"filename = 'data/体质检测标准_BMI.json'\n",
"with open(filename,'r') as fl:\n",
" dict4 = json.load(fl) \n",
" \n",
"def cal_bmi(data1):\n",
" # data = {'name':'张三','sex':'M','age':37,'item':'HeightWeight','result':'177.7,97.0'}\n",
" person = dict4['person']\n",
" criteria = dict4['criteria']\n",
" if data1['age'] > 59:\n",
" data1['age'] = 59\n",
" if data1['age'] <20:\n",
" data1['age'] = 20\n",
" info = data1['sex']+str(data1['age'])\n",
" bz = person[info]\n",
" #print(bz)\n",
" result = data1['result']\n",
" #print(data1['code'],result)\n",
" height = int(float(result.split(',')[0]))\n",
" weight = float(result.split(',')[1])\n",
" if str(height) not in criteria[bz]:\n",
" score = 1\n",
" else: \n",
" mx = criteria[bz][str(height)]\n",
" if weight < mx[0]:\n",
" score = 1\n",
" elif weight < mx[1]:\n",
" score = 3\n",
" elif weight < mx[2]:\n",
" score = 5 \n",
" elif weight <= mx[3]:\n",
" score = 3 \n",
" elif weight > mx[3]:\n",
" score = 1\n",
" return score\n",
" \n",
" \n",
"\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",
"with open(filename,'r') as fl:\n",
" dict2 = json.load(fl) \n",
"for k, v in dict2.items():\n",
" #print(k)\n",
" if v['sex'] == '男':\n",
" sex = 'M'\n",
" else:\n",
" sex = 'F' \n",
" if 'height' in v.keys() and 'weight' in v.keys():\n",
" bmi_data = v['height']['成绩'].split()[0]+','+ v['weight']['成绩'].split()[0]\n",
" data1 = {'code':k,'sex':sex,'age':v['age'],'item':'HeightWeight','result':bmi_data}\n",
" dict2[k]['bmi'] = {}\n",
" dict2[k]['bmi']['成绩'] = bmi_data\n",
" dict2[k]['bmi']['score'] = cal_bmi(data1)\n",
" for item_en in list_item:\n",
" if item_en in v.keys(): \n",
" data1 = {'code':k,'sex':sex,'age':v['age'],'item':item_en,'result':float(v[item_en]['成绩'].split()[0])}\n",
" 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",
"with open(filename,'w') as fl:\n",
" json.dump(dict2,fl , ensure_ascii=False) \n",
"print('ok!') "
]
},
{
"cell_type": "code",
"execution_count": 17,
"id": "35c83ea5-e331-4655-aba5-42720e2bc63a",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-12T10:16:48.636396Z",
"iopub.status.busy": "2024-06-12T10:16:48.635668Z",
"iopub.status.idle": "2024-06-12T10:16:48.657437Z",
"shell.execute_reply": "2024-06-12T10:16:48.656829Z",
"shell.execute_reply.started": "2024-06-12T10:16:48.636335Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"18993727823\n",
"18909376562\n",
"18993710970\n",
"18997374506\n",
"18997372109\n",
"18093715987\n",
"18997372608\n",
"18993722556\n",
"18894239366\n",
"18993710998\n",
"13801023617\n",
"18993710998\n",
"18993729661\n",
"18093715391\n",
"18993710973\n",
"18997372109\n",
"18993714097\n",
"18909376963\n",
"18993728737\n",
"18997372608\n",
"18909376562\n",
"18993729661\n",
"18993712026\n",
"18993710395\n",
"18997375563\n",
"18993712869\n",
"18993710955\n",
"19009775378\n",
"18997375312\n"
]
}
],
"source": [
"import json\n",
"import csv\n",
"import openpyxl\n",
"import time\n",
"from datetime import date\n",
"\n",
"filename = 'data/result_青海家属.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
"filename = 'data/青海_家属.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_20240612.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",
"#print(list1)\n",
"dict2 = {}\n",
"psy =[]\n",
"tcm = []\n",
"spine = []\n",
"for i in range(0,45):\n",
" psy.append(0)\n",
"psy[44] = []\n",
"for i in range(0,60):\n",
" tcm.append(0)\n",
"for i in range(0,26):\n",
" spine.append(0)\n",
"\n",
"for item in list1:\n",
" if item[2] in phone.keys():\n",
" psy =[]\n",
" tcm = []\n",
" spine = []\n",
" for i in range(0,45):\n",
" psy.append(0)\n",
" psy[44] = []\n",
" for i in range(0,60):\n",
" tcm.append(0)\n",
" for i in range(0,26):\n",
" spine.append(0)\n",
" \n",
" content = json.loads(item[5])\n",
" if phone[item[2]] not in dict1.keys():\n",
" dict1[phone[item[2]]] = dict3[phone[item[2]]]\n",
" #print(item[2])\n",
" rq = date.fromisoformat(item[6].replace('/','-').split(' ')[0])\n",
" #dict1[phone[item[2]]]['rq'] = date.fromisoformat(item[6].replace('/','-').split(' ')[0])\n",
" for k, v in content.items():\n",
" if 'psy' in k:\n",
" i = int(k[3:])\n",
" psy[i-1] = int(v)\n",
" if 'tcm' in k:\n",
" i = int(k[3:])\n",
" tcm[i-1] = int(v)\n",
" if 'spine' in k:\n",
" i = int(k[5:])\n",
" spine[i-1] = int(v)\n",
" if 'psy' in item[5]:\n",
" #for i in range(5,26):\n",
" # new_valve = 5-psy[i]\n",
" # psy[i] = new_valve\n",
" for i in range(26,40):\n",
" new_valve = 1+psy[i]\n",
" psy[i] = new_valve\n",
" \n",
" dict1[phone[item[2]]]['psy'] = psy\n",
" if 'tcm' in item[5]:\n",
" dict1[phone[item[2]]]['tcm'] = tcm\n",
" if 'spine' in item[5]:\n",
" dict1[phone[item[2]]]['spine'] = spine\n",
" birth = date.fromisoformat(dict3[phone[item[2]]]['birth'].replace('/','-'))\n",
" #rq =date.fromisoformat('2023-12-08')\n",
" days = (rq-birth).days \n",
" dict1[phone[item[2]]]['age'] = int(days/365)\n",
" dict1[phone[item[2]]]['month'] = int(days/365*12)\n",
" else:\n",
" print(item[2])\n",
"filename = 'data/result_青海家属.json'\n",
"\n",
"with open(filename,'w') as fl:\n",
" json.dump(dict1, fl, ensure_ascii=False) "
]
},
{
"cell_type": "code",
"execution_count": 18,
"id": "1f137b9b-b51b-4a7a-baea-b1978e5f00c1",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-12T10:18:43.533220Z",
"iopub.status.busy": "2024-06-12T10:18:43.532466Z",
"iopub.status.idle": "2024-06-12T10:18:51.206996Z",
"shell.execute_reply": "2024-06-12T10:18:51.205814Z",
"shell.execute_reply.started": "2024-06-12T10:18:43.533131Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"14\n"
]
}
],
"source": [
"import requests\n",
"import json\n",
"import openpyxl\n",
"\n",
"\n",
"headers = {\n",
" \"Content-Type\": \"application/json; charset=UTF-8\"\n",
" }\n",
"filename = 'data/result_青海家属.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"list1 = []\n",
"file_path ='./青海家属/'\n",
"list_item = ['lung','grip','flexion','jump','pushup','balance','reaction','step','situp','bmi']\n",
"i=0\n",
"list2 = []\n",
"for k, v in dict1.items():\n",
" list1 = []\n",
" mydata = {}\n",
" \n",
" id = str(k).rjust(4,\"0\")\n",
" mydata['path'] = file_path+id+'-'+ v['name']+'.pdf'\n",
" mydata['title'] = '青海油田勘探事业部' \n",
" mydata['subtitle'] = ''\n",
" mydata['id'] = id\n",
" mydata['name'] = v['name']\n",
" if v['sex'] == '男':\n",
" mydata['gender'] = 'male'\n",
" else:\n",
" mydata['gender'] = 'female'\n",
" \n",
" mydata['month'] = v['month']\n",
" mydata['fits'] = {}\n",
" survey_list = ['tcm','psy','spine']\n",
" for item in survey_list:\n",
" if item in v.keys():\n",
" mydata.setdefault('surveys',{})\n",
" mydata['surveys'][item] = v[item]\n",
" \n",
" \n",
" #mydata['fits'] = {}\n",
" for item in list_item:\n",
" if item in v.keys():\n",
" mydata.setdefault('fits',{})\n",
" if item in ['lung','pushup','step','situp']:\n",
" mark = v[item]['成绩'].split()[0].split('.')[0]\n",
" 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",
" list1.append(mydata)\n",
" list2.append([k,v['name']])\n",
" i+=1\n",
" x = requests.post('http://localhost:3003', data = json.dumps(list1), headers=headers)\n",
" #print(id,v['name'],x.text)\n",
" #print(mydata)\n",
" #x.close()\n",
"print(i)"
]
},
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": null,
"id": "56a76ae9-bd4f-48ad-9e4c-ee16873b5850", "id": "56dfb00b-d907-4d0a-8a12-f39e9db6f6a2",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [] "source": []
File diff suppressed because it is too large. Load diff