From 1df452f6bbe9f615beac1539debaf8a5acab8468 Mon Sep 17 00:00:00 2001 From: govin08 Date: Thu, 14 Dec 2023 09:34:18 +0900 Subject: [PATCH] transition&offset2 --- 1214_transition&offset.ipynb | 74 +++++++++++++++++++----------------- 1 file changed, 39 insertions(+), 35 deletions(-) diff --git a/1214_transition&offset.ipynb b/1214_transition&offset.ipynb index b288c0d..c4c98b6 100644 --- a/1214_transition&offset.ipynb +++ b/1214_transition&offset.ipynb @@ -70,7 +70,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "C:\\Users\\유아이네트웍스\\AppData\\Local\\Temp\\ipykernel_15316\\2359052046.py:15: DtypeWarning: Columns (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23) have mixed types. Specify dtype option on import or set low_memory=False.\n", + "C:\\Users\\유아이네트웍스\\AppData\\Local\\Temp\\ipykernel_13548\\2359052046.py:15: DtypeWarning: Columns (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23) have mixed types. Specify dtype option on import or set low_memory=False.\n", " soitdopermap3 = pd.read_csv('soitdopermap3.csv')\n" ] } @@ -195,6 +195,43 @@ "sorted(list(hstr_1213.수집날짜시각.unique()))[-3:]" ] }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "안정화된 수집시각의 차이\n", + " 0 37\n", + " 1 16\n", + "-1 12\n", + "-3 1\n", + " 3 1\n", + " 2 1\n", + "Name: count, dtype: int64\n", + "처음 여섯 현시시각의 차이(L1 norm)\n", + " 0 37\n", + " 1 16\n", + "-1 12\n", + "-3 1\n", + " 3 1\n", + " 2 1\n", + "Name: count, dtype: int64\n" + ] + } + ], + "source": [ + "differences = [value for sublist in diffs.values() for value in sublist.values()]\n", + "print(\"안정화된 수집시각의 차이\")\n", + "print(pd.Series(differences).value_counts())\n", + "print(\"처음 여섯 현시시각의 차이(L1 norm)\")\n", + "errors = [value for sublist in diffs.values() for value in sublist.values()]\n", + "print(pd.Series(errors).value_counts())" + ] + }, { "cell_type": "code", "execution_count": 6, @@ -28259,7 +28296,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -28270,39 +28307,6 @@ " display(hstrs[inter_no][start_time][13])\n", "# each_results(5031, '06:00')" ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - " 0 37\n", - " 1 16\n", - "-1 12\n", - "-3 1\n", - " 3 1\n", - " 2 1\n", - "Name: count, dtype: int64\n", - " 0 37\n", - " 1 16\n", - "-1 12\n", - "-3 1\n", - " 3 1\n", - " 2 1\n", - "Name: count, dtype: int64\n" - ] - } - ], - "source": [ - "differences = [value for sublist in diffs.values() for value in sublist.values()]\n", - "print(pd.Series(differences).value_counts())\n", - "errors = [value for sublist in diffs.values() for value in sublist.values()]\n", - "print(pd.Series(errors).value_counts())" - ] } ], "metadata": {