[O] Rerun
This commit is contained in:
+30
-37
@@ -2,7 +2,7 @@
|
|||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 3,
|
"execution_count": 1,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"from __future__ import annotations\n",
|
"from __future__ import annotations\n",
|
||||||
@@ -23,14 +23,14 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"start_time": "2023-04-03T09:42:33.692594Z",
|
"start_time": "2023-04-03T10:15:55.091702Z",
|
||||||
"end_time": "2023-04-03T09:42:34.664945Z"
|
"end_time": "2023-04-03T10:15:55.098701Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 14,
|
"execution_count": 2,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"fm = matplotlib.font_manager\n",
|
"fm = matplotlib.font_manager\n",
|
||||||
@@ -42,19 +42,19 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"start_time": "2023-04-03T09:56:39.022987Z",
|
"start_time": "2023-04-03T10:15:55.100206Z",
|
||||||
"end_time": "2023-04-03T09:56:39.073867Z"
|
"end_time": "2023-04-03T10:15:55.110153Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 5,
|
"execution_count": 3,
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": true,
|
"collapsed": true,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"start_time": "2023-04-03T09:42:57.123275Z",
|
"start_time": "2023-04-03T10:15:55.114460Z",
|
||||||
"end_time": "2023-04-03T09:43:48.116854Z"
|
"end_time": "2023-04-03T10:16:41.049276Z"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@@ -62,8 +62,8 @@
|
|||||||
"name": "stderr",
|
"name": "stderr",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"Loading data: 100%|██████████| 135206/135206 [00:00<00:00, 185481.57it/s]\n",
|
"Loading file list: 100%|██████████| 135206/135206 [00:00<00:00, 201355.38it/s]\n",
|
||||||
"Loading json: 100%|██████████| 135205/135205 [00:49<00:00, 2705.04it/s]"
|
"Loading json: 100%|██████████| 135205/135205 [00:38<00:00, 3497.82it/s]\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -72,13 +72,6 @@
|
|||||||
"text": [
|
"text": [
|
||||||
"一共有 135205 個訂單\n"
|
"一共有 135205 個訂單\n"
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "stderr",
|
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"\n"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
@@ -91,7 +84,7 @@
|
|||||||
"def load_data():\n",
|
"def load_data():\n",
|
||||||
" dir = Path(toml.loads(Path('config.toml').read_text())['index_path'])\n",
|
" dir = Path(toml.loads(Path('config.toml').read_text())['index_path'])\n",
|
||||||
" files = [(dir / f) for f in tq(os.listdir(dir), 'Loading file list') if f.endswith('.json')]\n",
|
" files = [(dir / f) for f in tq(os.listdir(dir), 'Loading file list') if f.endswith('.json')]\n",
|
||||||
" return pmap(_helper, files, desc='Loading json')\n",
|
" return smap(_helper, files, desc='Loading json')\n",
|
||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"data = load_data()\n",
|
"data = load_data()\n",
|
||||||
@@ -100,7 +93,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 6,
|
"execution_count": 4,
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"delivery = json.loads(Path('data/delivery.json').read_text())\n",
|
"delivery = json.loads(Path('data/delivery.json').read_text())\n",
|
||||||
@@ -118,14 +111,14 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"start_time": "2023-04-03T09:43:55.301846Z",
|
"start_time": "2023-04-03T10:16:41.089229Z",
|
||||||
"end_time": "2023-04-03T09:43:59.965436Z"
|
"end_time": "2023-04-03T10:16:41.474719Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 7,
|
"execution_count": 5,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
@@ -175,14 +168,14 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"start_time": "2023-04-03T09:44:21.771663Z",
|
"start_time": "2023-04-03T10:16:41.489723Z",
|
||||||
"end_time": "2023-04-03T09:44:22.250463Z"
|
"end_time": "2023-04-03T10:16:42.064213Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 8,
|
"execution_count": 6,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
@@ -223,14 +216,14 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"start_time": "2023-04-03T09:44:47.609827Z",
|
"start_time": "2023-04-03T10:16:42.072640Z",
|
||||||
"end_time": "2023-04-03T09:44:48.180899Z"
|
"end_time": "2023-04-03T10:16:42.541632Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 18,
|
"execution_count": 7,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
@@ -306,14 +299,14 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"start_time": "2023-04-03T10:04:56.894525Z",
|
"start_time": "2023-04-03T10:16:42.540837Z",
|
||||||
"end_time": "2023-04-03T10:05:02.681443Z"
|
"end_time": "2023-04-03T10:16:48.065746Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 13,
|
"execution_count": 8,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
@@ -339,14 +332,14 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"start_time": "2023-04-03T09:48:52.447143Z",
|
"start_time": "2023-04-03T10:16:47.703948Z",
|
||||||
"end_time": "2023-04-03T09:48:58.155815Z"
|
"end_time": "2023-04-03T10:16:53.170435Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 19,
|
"execution_count": 9,
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
@@ -372,8 +365,8 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"collapsed": false,
|
"collapsed": false,
|
||||||
"ExecuteTime": {
|
"ExecuteTime": {
|
||||||
"start_time": "2023-04-03T10:05:02.679744Z",
|
"start_time": "2023-04-03T10:16:52.688834Z",
|
||||||
"end_time": "2023-04-03T10:05:07.569168Z"
|
"end_time": "2023-04-03T10:16:57.594972Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user