This commit is contained in:
512song committed 2023-11-11 22:46:28 +08:00
1 parent bb45950ba6
commit bec78cd290
4 files changed
+394 -193

No files matched your search

+66 -17
View File
@@ -2250,16 +2250,9 @@
},
{
"cell_type": "code",
"execution_count": 244,
"execution_count": null,
"id": "3fa6a1a9-63af-4f4e-9d30-b94f4357f7dc",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-09T12:42:37.907963Z",
"iopub.status.busy": "2023-11-09T12:42:37.907493Z",
"iopub.status.idle": "2023-11-09T12:42:38.065986Z",
"shell.execute_reply": "2023-11-09T12:42:38.065489Z",
"shell.execute_reply.started": "2023-11-09T12:42:37.907926Z"
},
"tags": []
},
"outputs": [],
@@ -2291,16 +2284,9 @@
},
{
"cell_type": "code",
"execution_count": 245,
"execution_count": null,
"id": "3f75763f-79bd-4a8c-9612-2eba89ce32f1",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-09T12:42:42.685877Z",
"iopub.status.busy": "2023-11-09T12:42:42.685491Z",
"iopub.status.idle": "2023-11-09T12:42:43.010658Z",
"shell.execute_reply": "2023-11-09T12:42:43.010150Z",
"shell.execute_reply.started": "2023-11-09T12:42:42.685846Z"
},
"tags": []
},
"outputs": [],
@@ -3097,10 +3083,73 @@
" print()"
]
},
{
"cell_type": "markdown",
"id": "d3d9d517-61e5-4c4c-bddb-1f386a518d99",
"metadata": {},
"source": [
"## 倒班人员数据分析"
]
},
{
"cell_type": "markdown",
"id": "6b0b8d09-ce15-4a36-9421-251ab50ae706",
"metadata": {},
"source": [
"### 倒班员工数据导入"
]
},
{
"cell_type": "code",
"execution_count": 253,
"id": "518a1e40-d383-4d78-a4ea-224ddab49b79",
"metadata": {
"execution": {
"iopub.execute_input": "2023-11-10T13:59:53.477003Z",
"iopub.status.busy": "2023-11-10T13:59:53.476599Z",
"iopub.status.idle": "2023-11-10T13:59:54.275449Z",
"shell.execute_reply": "2023-11-10T13:59:54.274890Z",
"shell.execute_reply.started": "2023-11-10T13:59:53.476972Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1726\n"
]
}
],
"source": [
"import json\n",
"import openpyxl\n",
"\n",
"\n",
"filename = 'data/data_天津231017.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"\n",
" \n",
"wb = openpyxl.load_workbook('data/员工个人基础信息-倒班.xlsx')\n",
"sheet = wb.active\n",
"# sheets = wb.sheetnames\n",
"dict2 = {}\n",
"i = 1\n",
"for n in range(2, sheet.max_row+1):\n",
" if sheet.cell(n, 1).value is not None:\n",
" code = int(sheet.cell(n, 1).value)\n",
" daoban = sheet.cell(n, 6).value\n",
" if str(code) in dict1.keys() and daoban == '倒班':\n",
" dict2[str(code)] = dict1[str(code)]\n",
"print(len(dict2))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "2ed551b0-85d5-40d4-8cc1-fd0a0c330ad9",
"id": "08167b05-8719-41c9-a71d-57906a55eb63",
"metadata": {},
"outputs": [],
"source": []