diff --git a/docs/user_guide/reading.ipynb b/docs/user_guide/reading.ipynb index 13fb60f9..fb0ce233 100644 --- a/docs/user_guide/reading.ipynb +++ b/docs/user_guide/reading.ipynb @@ -235,7 +235,7 @@ " NaN\n", " NaN\n", " NaN\n", - " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43\n", + " f1066868-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", " 2016-08-12 19:30:49.531000+00:00\n", @@ -258,7 +258,7 @@ " NaN\n", " STILL\n", " 62.0\n", - " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43\n", + " f1066868-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", " 2016-08-12 19:31:49.531000+00:00\n", @@ -281,7 +281,7 @@ " 24.824478\n", " STILL\n", " 62.0\n", - " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43\n", + " f1066868-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", " 2016-08-12 21:15:55.295000+00:00\n", @@ -304,7 +304,7 @@ " NaN\n", " ON_FOOT\n", " 54.0\n", - " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43\n", + " f1066868-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", " 2016-08-12 21:16:33+00:00\n", @@ -327,7 +327,7 @@ " NaN\n", " NaN\n", " NaN\n", - " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43\n", + " f1066868-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", " 2016-08-12 21:16:48+00:00\n", @@ -350,7 +350,7 @@ " NaN\n", " NaN\n", " NaN\n", - " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43\n", + " f1066868-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", " 2023-11-21 11:29:21.730000+00:00\n", @@ -373,7 +373,7 @@ " 24.821288\n", " NaN\n", " NaN\n", - " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43\n", + " f1066868-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", "\n", @@ -462,13 +462,13 @@ "\n", " user \n", "timestamp \n", - "2016-08-12 19:29:43.821000+00:00 d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 \n", - "2016-08-12 19:30:49.531000+00:00 d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 \n", - "2016-08-12 19:31:49.531000+00:00 d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 \n", - "2016-08-12 21:15:55.295000+00:00 d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 \n", - "2016-08-12 21:16:33+00:00 d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 \n", - "2016-08-12 21:16:48+00:00 d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 \n", - "2023-11-21 11:29:21.730000+00:00 d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 " + "2016-08-12 19:29:43.821000+00:00 f1066868-2e1d-11ef-abd1-b0dcef010c43 \n", + "2016-08-12 19:30:49.531000+00:00 f1066868-2e1d-11ef-abd1-b0dcef010c43 \n", + "2016-08-12 19:31:49.531000+00:00 f1066868-2e1d-11ef-abd1-b0dcef010c43 \n", + "2016-08-12 21:15:55.295000+00:00 f1066868-2e1d-11ef-abd1-b0dcef010c43 \n", + "2016-08-12 21:16:33+00:00 f1066868-2e1d-11ef-abd1-b0dcef010c43 \n", + "2016-08-12 21:16:48+00:00 f1066868-2e1d-11ef-abd1-b0dcef010c43 \n", + "2023-11-21 11:29:21.730000+00:00 f1066868-2e1d-11ef-abd1-b0dcef010c43 " ] }, "execution_count": 5, @@ -501,47 +501,62 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 6, "metadata": {}, "outputs": [ { "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
calories_(kcal)step_count
timestamp
2023-11-20 00:00:00+02:001752.2500270.000000
2023-11-21 00:00:00+02:001996.45674689.900002
\n", + "
" + ], "text/plain": [ - "date 2023-11-21\n", - "move_minutes_count 72.0\n", - "calories_(kcal) 1996.456746\n", - "distance_(m) 7159.124344\n", - "heart_points 48.0\n", - "heart_minutes 40.0\n", - "average_heart_rate_(bpm) NaN\n", - "max_heart_rate_(bpm) NaN\n", - "min_heart_rate_(bpm) NaN\n", - "low_latitude_(deg) NaN\n", - "low_longitude_(deg) 1.183746\n", - "high_latitude_(deg) 4.444444\n", - "high_longitude_(deg) 0.257015\n", - "average_speed_(m/s) 5627.0\n", - "max_speed_(m/s) 89.900002\n", - "min_speed_(m/s) 89.900002\n", - "step_count 89.900002\n", - "average_weight_(kg) NaN\n", - "max_weight_(kg) 2329447.0\n", - "min_weight_(kg) NaN\n", - "biking_duration_(ms) 720000.0\n", - "inactive_duration_(ms) NaN\n", - "walking_duration_(ms) NaN\n", - "running_duration_(ms) NaN\n", - "road_biking_duration_(ms) NaN\n", - "skiing_duration_(ms) NaN\n", - "strength_training_duration_(ms) NaN\n", - "pool_swimming_duration_(ms) NaN\n", - "yoga_duration_(ms) NaN\n", - "other_duration_(ms) NaN\n", - "user f32bdd90-2e1c-11ef-96f0-b0dcef010c43\n", - "Name: 2023-11-21 00:00:00+02:00, dtype: object" + " calories_(kcal) step_count\n", + "timestamp \n", + "2023-11-20 00:00:00+02:00 1752.250027 0.000000\n", + "2023-11-21 00:00:00+02:00 1996.456746 89.900002" ] }, - "execution_count": 16, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -570,9 +585,9 @@ "name": "stderr", "output_type": "stream", "text": [ - "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:463: UserWarning: Could not parse message timestamp: 2023-12-15 12:19:43+00:00\n", + "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:466: UserWarning: Could not parse message timestamp: 2023-12-15 12:19:43+00:00\n", " warnings.warn(f\"Could not parse message timestamp: {received}\")\n", - "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:477: UserWarning: Failed to format received time: Sat, 15 DeNot a timec 2023 12:19:43 0000\n", + "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:480: UserWarning: Failed to format received time: Sat, 15 DeNot a timec 2023 12:19:43 0000\n", " warnings.warn(f\"Failed to format received time: {received}\")\n" ] }, @@ -629,21 +644,21 @@ " 2023-12-15 12:19:43+00:00\n", " NaT\n", " 0\n", - " [1]\n", + " [2]\n", " []\n", " []\n", - " 0\n", + " 2\n", " <NA>\n", " 33\n", " 6\n", " outgoing\n", - " d9d9d702-2e1c-11ef-96f0-b0dcef010c43\n", + " f10e4d26-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", " 2023-12-15 12:29:43+00:00\n", " NaT\n", " 0\n", - " [6, 1]\n", + " [6, 2]\n", " []\n", " []\n", " 1\n", @@ -651,13 +666,13 @@ " 31\n", " 6\n", " outgoing\n", - " d9d9d702-2e1c-11ef-96f0-b0dcef010c43\n", + " f10e4d26-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", " 2023-12-15 12:29:43+00:00\n", " NaT\n", " 0\n", - " [6, 1]\n", + " [6, 2]\n", " []\n", " []\n", " 1\n", @@ -665,35 +680,35 @@ " 28\n", " 5\n", " outgoing\n", - " d9d9d702-2e1c-11ef-96f0-b0dcef010c43\n", + " f10e4d26-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", " 2023-12-15 12:39:43+00:00\n", " 2023-12-15 12:19:43+00:00\n", " 6\n", " [0]\n", - " [3]\n", - " [3]\n", + " [4]\n", + " [4]\n", " 3\n", - " 0\n", + " 2\n", " 30\n", " 5\n", " incoming\n", - " d9d9d702-2e1c-11ef-96f0-b0dcef010c43\n", + " f10e4d26-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", " 2023-12-15 12:39:43+00:00\n", " Sat, 15 DeNot a timec 2023 12:19:43 0000\n", " 6\n", " [0]\n", - " [3]\n", - " [3]\n", + " [4]\n", + " [4]\n", " 3\n", - " 0\n", + " 2\n", " 51\n", " 7\n", " incoming\n", - " d9d9d702-2e1c-11ef-96f0-b0dcef010c43\n", + " f10e4d26-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", "\n", @@ -710,11 +725,11 @@ "\n", " to cc bcc message_id in_reply_to \\\n", "timestamp \n", - "2023-12-15 12:19:43+00:00 [1] [] [] 0 \n", - "2023-12-15 12:29:43+00:00 [6, 1] [] [] 1 \n", - "2023-12-15 12:29:43+00:00 [6, 1] [] [] 1 \n", - "2023-12-15 12:39:43+00:00 [0] [3] [3] 3 0 \n", - "2023-12-15 12:39:43+00:00 [0] [3] [3] 3 0 \n", + "2023-12-15 12:19:43+00:00 [2] [] [] 2 \n", + "2023-12-15 12:29:43+00:00 [6, 2] [] [] 1 \n", + "2023-12-15 12:29:43+00:00 [6, 2] [] [] 1 \n", + "2023-12-15 12:39:43+00:00 [0] [4] [4] 3 2 \n", + "2023-12-15 12:39:43+00:00 [0] [4] [4] 3 2 \n", "\n", " character_count word_count message_type \\\n", "timestamp \n", @@ -726,11 +741,11 @@ "\n", " user \n", "timestamp \n", - "2023-12-15 12:19:43+00:00 d9d9d702-2e1c-11ef-96f0-b0dcef010c43 \n", - "2023-12-15 12:29:43+00:00 d9d9d702-2e1c-11ef-96f0-b0dcef010c43 \n", - "2023-12-15 12:29:43+00:00 d9d9d702-2e1c-11ef-96f0-b0dcef010c43 \n", - "2023-12-15 12:39:43+00:00 d9d9d702-2e1c-11ef-96f0-b0dcef010c43 \n", - "2023-12-15 12:39:43+00:00 d9d9d702-2e1c-11ef-96f0-b0dcef010c43 " + "2023-12-15 12:19:43+00:00 f10e4d26-2e1d-11ef-abd1-b0dcef010c43 \n", + "2023-12-15 12:29:43+00:00 f10e4d26-2e1d-11ef-abd1-b0dcef010c43 \n", + "2023-12-15 12:29:43+00:00 f10e4d26-2e1d-11ef-abd1-b0dcef010c43 \n", + "2023-12-15 12:39:43+00:00 f10e4d26-2e1d-11ef-abd1-b0dcef010c43 \n", + "2023-12-15 12:39:43+00:00 f10e4d26-2e1d-11ef-abd1-b0dcef010c43 " ] }, "execution_count": 7, @@ -764,7 +779,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:645: UserWarning: Multiple user emails found. Using the first one.\n", + "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:648: UserWarning: Multiple user emails found. Using the first one.\n", " warnings.warn(\"Multiple user emails found. Using the first one.\")\n" ] }, @@ -836,7 +851,7 @@ " Human\n", " 5\n", " 1\n", - " d9dd9770-2e1c-11ef-96f0-b0dcef010c43\n", + " f1144500-2e1d-11ef-abd1-b0dcef010c43\n", " outgoing\n", " none\n", " 0.000000\n", @@ -851,7 +866,7 @@ " Human\n", " 5\n", " 1\n", - " d9dd9770-2e1c-11ef-96f0-b0dcef010c43\n", + " f1144500-2e1d-11ef-abd1-b0dcef010c43\n", " incoming\n", " none\n", " 0.000000\n", @@ -866,7 +881,7 @@ " Human\n", " 11\n", " 3\n", - " d9dd9770-2e1c-11ef-96f0-b0dcef010c43\n", + " f1144500-2e1d-11ef-abd1-b0dcef010c43\n", " incoming\n", " positive\n", " 0.535310\n", @@ -881,7 +896,7 @@ " Human\n", " 22\n", " 5\n", - " d9dd9770-2e1c-11ef-96f0-b0dcef010c43\n", + " f1144500-2e1d-11ef-abd1-b0dcef010c43\n", " outgoing\n", " positive\n", " 0.912528\n", @@ -914,10 +929,10 @@ "\n", " user message_type \\\n", "timestamp \n", - "2024-01-30 13:27:33+00:00 d9dd9770-2e1c-11ef-96f0-b0dcef010c43 outgoing \n", - "2024-01-30 13:29:10+00:00 d9dd9770-2e1c-11ef-96f0-b0dcef010c43 incoming \n", - "2024-01-30 13:29:17+00:00 d9dd9770-2e1c-11ef-96f0-b0dcef010c43 incoming \n", - "2024-01-30 13:29:17+00:00 d9dd9770-2e1c-11ef-96f0-b0dcef010c43 outgoing \n", + "2024-01-30 13:27:33+00:00 f1144500-2e1d-11ef-abd1-b0dcef010c43 outgoing \n", + "2024-01-30 13:29:10+00:00 f1144500-2e1d-11ef-abd1-b0dcef010c43 incoming \n", + "2024-01-30 13:29:17+00:00 f1144500-2e1d-11ef-abd1-b0dcef010c43 incoming \n", + "2024-01-30 13:29:17+00:00 f1144500-2e1d-11ef-abd1-b0dcef010c43 outgoing \n", "\n", " sentiment sentiment_score \n", "timestamp \n", @@ -987,25 +1002,25 @@ " 2024-02-13 08:36:49+02:00\n", " 0\n", " 0\n", - " daa37b2a-2e1c-11ef-96f0-b0dcef010c43\n", + " f1f6ae72-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", " 2024-02-13 08:36:05+02:00\n", " 1\n", " 1\n", - " daa37b2a-2e1c-11ef-96f0-b0dcef010c43\n", + " f1f6ae72-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", " 2024-02-13 08:35:38+02:00\n", " 2\n", " 2\n", - " daa37b2a-2e1c-11ef-96f0-b0dcef010c43\n", + " f1f6ae72-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", " 2024-02-13 08:35:03+02:00\n", " 0\n", " 0\n", - " daa37b2a-2e1c-11ef-96f0-b0dcef010c43\n", + " f1f6ae72-2e1d-11ef-abd1-b0dcef010c43\n", " \n", " \n", "\n", @@ -1021,10 +1036,10 @@ "\n", " user \n", "timestamp \n", - "2024-02-13 08:36:49+02:00 daa37b2a-2e1c-11ef-96f0-b0dcef010c43 \n", - "2024-02-13 08:36:05+02:00 daa37b2a-2e1c-11ef-96f0-b0dcef010c43 \n", - "2024-02-13 08:35:38+02:00 daa37b2a-2e1c-11ef-96f0-b0dcef010c43 \n", - "2024-02-13 08:35:03+02:00 daa37b2a-2e1c-11ef-96f0-b0dcef010c43 " + "2024-02-13 08:36:49+02:00 f1f6ae72-2e1d-11ef-abd1-b0dcef010c43 \n", + "2024-02-13 08:36:05+02:00 f1f6ae72-2e1d-11ef-abd1-b0dcef010c43 \n", + "2024-02-13 08:35:38+02:00 f1f6ae72-2e1d-11ef-abd1-b0dcef010c43 \n", + "2024-02-13 08:35:03+02:00 f1f6ae72-2e1d-11ef-abd1-b0dcef010c43 " ] }, "execution_count": 9, @@ -1052,9 +1067,9 @@ "name": "stderr", "output_type": "stream", "text": [ - "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:463: UserWarning: Could not parse message timestamp: 2023-12-15 12:19:43+00:00\n", + "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:466: UserWarning: Could not parse message timestamp: 2023-12-15 12:19:43+00:00\n", " warnings.warn(f\"Could not parse message timestamp: {received}\")\n", - "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:477: UserWarning: Failed to format received time: Sat, 15 DeNot a timec 2023 12:19:43 0000\n", + "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:480: UserWarning: Failed to format received time: Sat, 15 DeNot a timec 2023 12:19:43 0000\n", " warnings.warn(f\"Failed to format received time: {received}\")\n" ] }, @@ -1132,12 +1147,12 @@ " [1]\n", " []\n", " []\n", - " 0\n", + " 2\n", " <NA>\n", " 33\n", " 6\n", " outgoing\n", - " daa63716-2e1c-11ef-96f0-b0dcef010c43\n", + " f1f97e90-2e1d-11ef-abd1-b0dcef010c43\n", " positive\n", " 0.993223\n", " \n", @@ -1153,7 +1168,7 @@ " 31\n", " 6\n", " outgoing\n", - " daa63716-2e1c-11ef-96f0-b0dcef010c43\n", + " f1f97e90-2e1d-11ef-abd1-b0dcef010c43\n", " negative\n", " 0.980209\n", " \n", @@ -1169,7 +1184,7 @@ " 28\n", " 5\n", " outgoing\n", - " daa63716-2e1c-11ef-96f0-b0dcef010c43\n", + " f1f97e90-2e1d-11ef-abd1-b0dcef010c43\n", " negative\n", " 0.968588\n", " \n", @@ -1181,11 +1196,11 @@ " [4]\n", " [4]\n", " 3\n", - " 0\n", + " 2\n", " 30\n", " 5\n", " incoming\n", - " daa63716-2e1c-11ef-96f0-b0dcef010c43\n", + " f1f97e90-2e1d-11ef-abd1-b0dcef010c43\n", " positive\n", " 0.997529\n", " \n", @@ -1197,11 +1212,11 @@ " [4]\n", " [4]\n", " 3\n", - " 0\n", + " 2\n", " 51\n", " 7\n", " incoming\n", - " daa63716-2e1c-11ef-96f0-b0dcef010c43\n", + " f1f97e90-2e1d-11ef-abd1-b0dcef010c43\n", " neutral\n", " 0.477333\n", " \n", @@ -1220,11 +1235,11 @@ "\n", " to cc bcc message_id in_reply_to \\\n", "timestamp \n", - "2023-12-15 12:19:43+00:00 [1] [] [] 0 \n", + "2023-12-15 12:19:43+00:00 [1] [] [] 2 \n", "2023-12-15 12:29:43+00:00 [6, 1] [] [] 1 \n", "2023-12-15 12:29:43+00:00 [6, 1] [] [] 1 \n", - "2023-12-15 12:39:43+00:00 [0] [4] [4] 3 0 \n", - "2023-12-15 12:39:43+00:00 [0] [4] [4] 3 0 \n", + "2023-12-15 12:39:43+00:00 [0] [4] [4] 3 2 \n", + "2023-12-15 12:39:43+00:00 [0] [4] [4] 3 2 \n", "\n", " character_count word_count message_type \\\n", "timestamp \n", @@ -1236,11 +1251,11 @@ "\n", " user sentiment \\\n", "timestamp \n", - "2023-12-15 12:19:43+00:00 daa63716-2e1c-11ef-96f0-b0dcef010c43 positive \n", - "2023-12-15 12:29:43+00:00 daa63716-2e1c-11ef-96f0-b0dcef010c43 negative \n", - "2023-12-15 12:29:43+00:00 daa63716-2e1c-11ef-96f0-b0dcef010c43 negative \n", - "2023-12-15 12:39:43+00:00 daa63716-2e1c-11ef-96f0-b0dcef010c43 positive \n", - "2023-12-15 12:39:43+00:00 daa63716-2e1c-11ef-96f0-b0dcef010c43 neutral \n", + "2023-12-15 12:19:43+00:00 f1f97e90-2e1d-11ef-abd1-b0dcef010c43 positive \n", + "2023-12-15 12:29:43+00:00 f1f97e90-2e1d-11ef-abd1-b0dcef010c43 negative \n", + "2023-12-15 12:29:43+00:00 f1f97e90-2e1d-11ef-abd1-b0dcef010c43 negative \n", + "2023-12-15 12:39:43+00:00 f1f97e90-2e1d-11ef-abd1-b0dcef010c43 positive \n", + "2023-12-15 12:39:43+00:00 f1f97e90-2e1d-11ef-abd1-b0dcef010c43 neutral \n", "\n", " sentiment_score \n", "timestamp \n",