From 4611fae32901b4c6c8fcbb782db51355d5a59848 Mon Sep 17 00:00:00 2001 From: "512song@sina.com" Date: Sun, 1 May 2022 17:19:01 +0800 Subject: [PATCH] 20220501 --- 数据处理.ipynb | 81 +++++++++++++++++++++++++------------------------- 1 file changed, 41 insertions(+), 40 deletions(-) diff --git a/数据处理.ipynb b/数据处理.ipynb index 0808c1f..9798124 100644 --- a/数据处理.ipynb +++ b/数据处理.ipynb @@ -845,15 +845,8 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": null, "metadata": { - "execution": { - "iopub.execute_input": "2021-12-17T01:17:00.335807Z", - "iopub.status.busy": "2021-12-17T01:17:00.334807Z", - "iopub.status.idle": "2021-12-17T01:17:00.469071Z", - "shell.execute_reply": "2021-12-17T01:17:00.469071Z", - "shell.execute_reply.started": "2021-12-17T01:17:00.335807Z" - }, "tags": [] }, "outputs": [], @@ -891,15 +884,8 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": null, "metadata": { - "execution": { - "iopub.execute_input": "2021-12-17T01:40:10.503538Z", - "iopub.status.busy": "2021-12-17T01:40:10.503538Z", - "iopub.status.idle": "2021-12-17T01:40:10.673044Z", - "shell.execute_reply": "2021-12-17T01:40:10.672043Z", - "shell.execute_reply.started": "2021-12-17T01:40:10.503538Z" - }, "tags": [] }, "outputs": [], @@ -934,15 +920,8 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": null, "metadata": { - "execution": { - "iopub.execute_input": "2021-12-17T02:50:20.560344Z", - "iopub.status.busy": "2021-12-17T02:50:20.560344Z", - "iopub.status.idle": "2021-12-17T02:50:21.226478Z", - "shell.execute_reply": "2021-12-17T02:50:21.226478Z", - "shell.execute_reply.started": "2021-12-17T02:50:20.560344Z" - }, "tags": [] }, "outputs": [], @@ -996,15 +975,8 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": null, "metadata": { - "execution": { - "iopub.execute_input": "2021-12-17T03:08:55.050632Z", - "iopub.status.busy": "2021-12-17T03:08:55.050632Z", - "iopub.status.idle": "2021-12-17T03:08:55.843287Z", - "shell.execute_reply": "2021-12-17T03:08:55.843287Z", - "shell.execute_reply.started": "2021-12-17T03:08:55.050632Z" - }, "tags": [] }, "outputs": [], @@ -1050,15 +1022,8 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": null, "metadata": { - "execution": { - "iopub.execute_input": "2021-12-17T03:18:41.399609Z", - "iopub.status.busy": "2021-12-17T03:18:41.398609Z", - "iopub.status.idle": "2021-12-17T03:18:41.467625Z", - "shell.execute_reply": "2021-12-17T03:18:41.466624Z", - "shell.execute_reply.started": "2021-12-17T03:18:41.399609Z" - }, "tags": [] }, "outputs": [], @@ -1166,6 +1131,35 @@ "\n" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## excel数据读取" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "tags": [] + }, + "outputs": [], + "source": [ + "import openpyxl\n", + "import json\n", + "\n", + "filename = 'data/长岭全成绩.xlsx'\n", + "wb = openpyxl.load_workbook(filename)\n", + "sheet = wb.active\n", + "data1 =list(sheet.values)\n", + "del data1[0]\n", + "print(data1)\n", + "#for data in data1:\n", + "# print(data)\n", + "\n" + ] + }, { "cell_type": "code", "execution_count": null, @@ -1186,6 +1180,13 @@ "print(collist)" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "code", "execution_count": null,