[O] Rerun

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