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

+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": []