diff --git a/docs/user_guide/reading.ipynb b/docs/user_guide/reading.ipynb
index 078e8224..13fb60f9 100644
--- a/docs/user_guide/reading.ipynb
+++ b/docs/user_guide/reading.ipynb
@@ -41,21 +41,7 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {},
- "outputs": [
- {
- "ename": "SyntaxError",
- "evalue": "invalid syntax (google_takeout.py, line 255)",
- "output_type": "error",
- "traceback": [
- "Traceback \u001b[0;36m(most recent call last)\u001b[0m:\n",
- "\u001b[0m File \u001b[1;32m~/miniconda3/envs/niimpy/lib/python3.12/site-packages/IPython/core/interactiveshell.py:3577\u001b[0m in \u001b[1;35mrun_code\u001b[0m\n exec(code_obj, self.user_global_ns, self.user_ns)\u001b[0m\n",
- "\u001b[0m Cell \u001b[1;32mIn[1], line 2\u001b[0m\n import niimpy\u001b[0m\n",
- "\u001b[0m File \u001b[1;32m~/src/niimpy/niimpy/__init__.py:3\u001b[0m\n from niimpy.reading.database import open, Data1, ALL\u001b[0m\n",
- "\u001b[0;36m File \u001b[0;32m~/src/niimpy/niimpy/reading/__init__.py:3\u001b[0;36m\n\u001b[0;31m from . import google_takeout\u001b[0;36m\n",
- "\u001b[0;36m File \u001b[0;32m~/src/niimpy/niimpy/reading/google_takeout.py:255\u001b[0;36m\u001b[0m\n\u001b[0;31m data[\"timestamp\"] = pd.to_datetime(data[\"Date\"], , utc=True)\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"import os\n",
"import niimpy \n",
@@ -81,7 +67,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
@@ -99,7 +85,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 3,
"metadata": {
"tags": []
},
@@ -138,7 +124,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
@@ -158,7 +144,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 5,
"metadata": {},
"outputs": [
{
@@ -249,7 +235,7 @@
"
NaN | \n",
" NaN | \n",
" NaN | \n",
- " 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 | \n",
" \n",
" \n",
" 2016-08-12 19:30:49.531000+00:00 | \n",
@@ -272,7 +258,7 @@
" NaN | \n",
" STILL | \n",
" 62.0 | \n",
- " 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 | \n",
"
\n",
" \n",
" 2016-08-12 19:31:49.531000+00:00 | \n",
@@ -295,7 +281,7 @@
" 24.824478 | \n",
" STILL | \n",
" 62.0 | \n",
- " 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 | \n",
"
\n",
" \n",
" 2016-08-12 21:15:55.295000+00:00 | \n",
@@ -318,7 +304,7 @@
" NaN | \n",
" ON_FOOT | \n",
" 54.0 | \n",
- " 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 | \n",
"
\n",
" \n",
" 2016-08-12 21:16:33+00:00 | \n",
@@ -341,7 +327,7 @@
" NaN | \n",
" NaN | \n",
" NaN | \n",
- " 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 | \n",
"
\n",
" \n",
" 2016-08-12 21:16:48+00:00 | \n",
@@ -364,7 +350,7 @@
" NaN | \n",
" NaN | \n",
" NaN | \n",
- " 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 | \n",
"
\n",
" \n",
" 2023-11-21 11:29:21.730000+00:00 | \n",
@@ -387,7 +373,7 @@
" 24.821288 | \n",
" NaN | \n",
" NaN | \n",
- " 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9d34e5a-2e1c-11ef-96f0-b0dcef010c43 | \n",
"
\n",
" \n",
"\n",
@@ -476,13 +462,13 @@
"\n",
" user \n",
"timestamp \n",
- "2016-08-12 19:29:43.821000+00:00 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 \n",
- "2016-08-12 19:30:49.531000+00:00 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 \n",
- "2016-08-12 19:31:49.531000+00:00 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 \n",
- "2016-08-12 21:15:55.295000+00:00 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 \n",
- "2016-08-12 21:16:33+00:00 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 \n",
- "2016-08-12 21:16:48+00:00 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 \n",
- "2023-11-21 11:29:21.730000+00:00 4ccd7356-2e1b-11ef-acc8-b0dcef010c43 "
+ "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 "
]
},
"execution_count": 5,
@@ -515,13 +501,44 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 16,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
- "Timestamp('2023-11-20 00:00:00')"
+ "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"
]
},
"execution_count": 16,
@@ -532,8 +549,7 @@
"source": [
"data = niimpy.reading.google_takeout.activity(\"test.zip\")\n",
"data.loc[data[\"step_count\"].isna(), \"step_count\"] = 0\n",
- "data[[\"calories_(kcal)\", \"step_count\"]]\n",
- "data.index[0]"
+ "data[[\"calories_(kcal)\", \"step_count\"]]"
]
},
{
@@ -547,16 +563,16 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:462: 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:463: 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:476: 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:477: 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"
]
},
@@ -613,21 +629,21 @@
" 2023-12-15 12:19:43+00:00 | \n",
" NaT | \n",
" 0 | \n",
- " [4] | \n",
+ " [1] | \n",
" [] | \n",
" [] | \n",
- " 3 | \n",
+ " 0 | \n",
" <NA> | \n",
" 33 | \n",
" 6 | \n",
" outgoing | \n",
- " 4cd2ba50-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9d9d702-2e1c-11ef-96f0-b0dcef010c43 | \n",
" \n",
" \n",
" 2023-12-15 12:29:43+00:00 | \n",
" NaT | \n",
" 0 | \n",
- " [3, 4] | \n",
+ " [6, 1] | \n",
" [] | \n",
" [] | \n",
" 1 | \n",
@@ -635,13 +651,13 @@
" 31 | \n",
" 6 | \n",
" outgoing | \n",
- " 4cd2ba50-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9d9d702-2e1c-11ef-96f0-b0dcef010c43 | \n",
"
\n",
" \n",
" 2023-12-15 12:29:43+00:00 | \n",
" NaT | \n",
" 0 | \n",
- " [3, 4] | \n",
+ " [6, 1] | \n",
" [] | \n",
" [] | \n",
" 1 | \n",
@@ -649,35 +665,35 @@
" 28 | \n",
" 5 | \n",
" outgoing | \n",
- " 4cd2ba50-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9d9d702-2e1c-11ef-96f0-b0dcef010c43 | \n",
"
\n",
" \n",
" 2023-12-15 12:39:43+00:00 | \n",
" 2023-12-15 12:19:43+00:00 | \n",
- " 3 | \n",
+ " 6 | \n",
" [0] | \n",
- " [5] | \n",
- " [5] | \n",
- " 2 | \n",
+ " [3] | \n",
+ " [3] | \n",
" 3 | \n",
+ " 0 | \n",
" 30 | \n",
" 5 | \n",
" incoming | \n",
- " 4cd2ba50-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9d9d702-2e1c-11ef-96f0-b0dcef010c43 | \n",
"
\n",
" \n",
" 2023-12-15 12:39:43+00:00 | \n",
" Sat, 15 DeNot a timec 2023 12:19:43 0000 | \n",
- " 3 | \n",
+ " 6 | \n",
" [0] | \n",
- " [5] | \n",
- " [5] | \n",
- " 2 | \n",
+ " [3] | \n",
+ " [3] | \n",
" 3 | \n",
+ " 0 | \n",
" 51 | \n",
" 7 | \n",
" incoming | \n",
- " 4cd2ba50-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9d9d702-2e1c-11ef-96f0-b0dcef010c43 | \n",
"
\n",
" \n",
"\n",
@@ -689,16 +705,16 @@
"2023-12-15 12:19:43+00:00 NaT 0 \n",
"2023-12-15 12:29:43+00:00 NaT 0 \n",
"2023-12-15 12:29:43+00:00 NaT 0 \n",
- "2023-12-15 12:39:43+00:00 2023-12-15 12:19:43+00:00 3 \n",
- "2023-12-15 12:39:43+00:00 Sat, 15 DeNot a timec 2023 12:19:43 0000 3 \n",
+ "2023-12-15 12:39:43+00:00 2023-12-15 12:19:43+00:00 6 \n",
+ "2023-12-15 12:39:43+00:00 Sat, 15 DeNot a timec 2023 12:19:43 0000 6 \n",
"\n",
" to cc bcc message_id in_reply_to \\\n",
"timestamp \n",
- "2023-12-15 12:19:43+00:00 [4] [] [] 3 \n",
- "2023-12-15 12:29:43+00:00 [3, 4] [] [] 1 \n",
- "2023-12-15 12:29:43+00:00 [3, 4] [] [] 1 \n",
- "2023-12-15 12:39:43+00:00 [0] [5] [5] 2 3 \n",
- "2023-12-15 12:39:43+00:00 [0] [5] [5] 2 3 \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",
"\n",
" character_count word_count message_type \\\n",
"timestamp \n",
@@ -710,11 +726,11 @@
"\n",
" user \n",
"timestamp \n",
- "2023-12-15 12:19:43+00:00 4cd2ba50-2e1b-11ef-acc8-b0dcef010c43 \n",
- "2023-12-15 12:29:43+00:00 4cd2ba50-2e1b-11ef-acc8-b0dcef010c43 \n",
- "2023-12-15 12:29:43+00:00 4cd2ba50-2e1b-11ef-acc8-b0dcef010c43 \n",
- "2023-12-15 12:39:43+00:00 4cd2ba50-2e1b-11ef-acc8-b0dcef010c43 \n",
- "2023-12-15 12:39:43+00:00 4cd2ba50-2e1b-11ef-acc8-b0dcef010c43 "
+ "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 "
]
},
"execution_count": 7,
@@ -741,14 +757,14 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:644: UserWarning: Multiple user emails found. Using the first one.\n",
+ "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:645: UserWarning: Multiple user emails found. Using the first one.\n",
" warnings.warn(\"Multiple user emails found. Using the first one.\")\n"
]
},
@@ -820,7 +836,7 @@
" Human | \n",
" 5 | \n",
" 1 | \n",
- " 4cd62672-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9dd9770-2e1c-11ef-96f0-b0dcef010c43 | \n",
" outgoing | \n",
" none | \n",
" 0.000000 | \n",
@@ -830,12 +846,12 @@
" cVEoT9zu63M | \n",
" 9guW_0AAAAE/cVEoT9zu63M/cVEoT9zu63M | \n",
" 0 | \n",
- " 2 | \n",
- " 2 | \n",
+ " 1 | \n",
+ " 1 | \n",
" Human | \n",
" 5 | \n",
" 1 | \n",
- " 4cd62672-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9dd9770-2e1c-11ef-96f0-b0dcef010c43 | \n",
" incoming | \n",
" none | \n",
" 0.000000 | \n",
@@ -845,12 +861,12 @@
" qEfkUgUvX80 | \n",
" 9guW_0AAAAE/qEfkUgUvX80/qEfkUgUvX80 | \n",
" 0 | \n",
- " 2 | \n",
- " 2 | \n",
+ " 1 | \n",
+ " 1 | \n",
" Human | \n",
" 11 | \n",
" 3 | \n",
- " 4cd62672-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9dd9770-2e1c-11ef-96f0-b0dcef010c43 | \n",
" incoming | \n",
" positive | \n",
" 0.535310 | \n",
@@ -865,7 +881,7 @@
" Human | \n",
" 22 | \n",
" 5 | \n",
- " 4cd62672-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " d9dd9770-2e1c-11ef-96f0-b0dcef010c43 | \n",
" outgoing | \n",
" positive | \n",
" 0.912528 | \n",
@@ -885,8 +901,8 @@
" chat_group creator_name creator_email \\\n",
"timestamp \n",
"2024-01-30 13:27:33+00:00 0 0 0 \n",
- "2024-01-30 13:29:10+00:00 0 2 2 \n",
- "2024-01-30 13:29:17+00:00 0 2 2 \n",
+ "2024-01-30 13:29:10+00:00 0 1 1 \n",
+ "2024-01-30 13:29:17+00:00 0 1 1 \n",
"2024-01-30 13:29:17+00:00 0 0 0 \n",
"\n",
" creator_user_type character_count word_count \\\n",
@@ -898,10 +914,10 @@
"\n",
" user message_type \\\n",
"timestamp \n",
- "2024-01-30 13:27:33+00:00 4cd62672-2e1b-11ef-acc8-b0dcef010c43 outgoing \n",
- "2024-01-30 13:29:10+00:00 4cd62672-2e1b-11ef-acc8-b0dcef010c43 incoming \n",
- "2024-01-30 13:29:17+00:00 4cd62672-2e1b-11ef-acc8-b0dcef010c43 incoming \n",
- "2024-01-30 13:29:17+00:00 4cd62672-2e1b-11ef-acc8-b0dcef010c43 outgoing \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",
"\n",
" sentiment sentiment_score \n",
"timestamp \n",
@@ -931,7 +947,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 9,
"metadata": {},
"outputs": [
{
@@ -971,25 +987,25 @@
" 2024-02-13 08:36:49+02:00 | \n",
" 0 | \n",
" 0 | \n",
- " 4dc5562a-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " daa37b2a-2e1c-11ef-96f0-b0dcef010c43 | \n",
" \n",
" \n",
" 2024-02-13 08:36:05+02:00 | \n",
" 1 | \n",
" 1 | \n",
- " 4dc5562a-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " daa37b2a-2e1c-11ef-96f0-b0dcef010c43 | \n",
"
\n",
" \n",
" 2024-02-13 08:35:38+02:00 | \n",
" 2 | \n",
" 2 | \n",
- " 4dc5562a-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " daa37b2a-2e1c-11ef-96f0-b0dcef010c43 | \n",
"
\n",
" \n",
" 2024-02-13 08:35:03+02:00 | \n",
" 0 | \n",
" 0 | \n",
- " 4dc5562a-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " daa37b2a-2e1c-11ef-96f0-b0dcef010c43 | \n",
"
\n",
" \n",
"\n",
@@ -1005,10 +1021,10 @@
"\n",
" user \n",
"timestamp \n",
- "2024-02-13 08:36:49+02:00 4dc5562a-2e1b-11ef-acc8-b0dcef010c43 \n",
- "2024-02-13 08:36:05+02:00 4dc5562a-2e1b-11ef-acc8-b0dcef010c43 \n",
- "2024-02-13 08:35:38+02:00 4dc5562a-2e1b-11ef-acc8-b0dcef010c43 \n",
- "2024-02-13 08:35:03+02:00 4dc5562a-2e1b-11ef-acc8-b0dcef010c43 "
+ "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 "
]
},
"execution_count": 9,
@@ -1029,16 +1045,16 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 10,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
- "/u/24/rantahj1/unix/src/niimpy/niimpy/reading/google_takeout.py:462: 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:463: 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:476: 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:477: 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"
]
},
@@ -1113,15 +1129,15 @@
" 2023-12-15 12:19:43+00:00 | \n",
" NaT | \n",
" 0 | \n",
- " [4] | \n",
+ " [1] | \n",
" [] | \n",
" [] | \n",
- " 3 | \n",
+ " 0 | \n",
" <NA> | \n",
" 33 | \n",
" 6 | \n",
" outgoing | \n",
- " 4dc7cb9e-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " daa63716-2e1c-11ef-96f0-b0dcef010c43 | \n",
" positive | \n",
" 0.993223 | \n",
" \n",
@@ -1129,7 +1145,7 @@
" 2023-12-15 12:29:43+00:00 | \n",
" NaT | \n",
" 0 | \n",
- " [3, 4] | \n",
+ " [6, 1] | \n",
" [] | \n",
" [] | \n",
" 1 | \n",
@@ -1137,7 +1153,7 @@
" 31 | \n",
" 6 | \n",
" outgoing | \n",
- " 4dc7cb9e-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " daa63716-2e1c-11ef-96f0-b0dcef010c43 | \n",
" negative | \n",
" 0.980209 | \n",
" \n",
@@ -1145,7 +1161,7 @@
" 2023-12-15 12:29:43+00:00 | \n",
" NaT | \n",
" 0 | \n",
- " [3, 4] | \n",
+ " [6, 1] | \n",
" [] | \n",
" [] | \n",
" 1 | \n",
@@ -1153,39 +1169,39 @@
" 28 | \n",
" 5 | \n",
" outgoing | \n",
- " 4dc7cb9e-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " daa63716-2e1c-11ef-96f0-b0dcef010c43 | \n",
" negative | \n",
" 0.968588 | \n",
" \n",
" \n",
" 2023-12-15 12:39:43+00:00 | \n",
" 2023-12-15 12:19:43+00:00 | \n",
- " 3 | \n",
+ " 6 | \n",
" [0] | \n",
- " [5] | \n",
- " [5] | \n",
- " 2 | \n",
+ " [4] | \n",
+ " [4] | \n",
" 3 | \n",
+ " 0 | \n",
" 30 | \n",
" 5 | \n",
" incoming | \n",
- " 4dc7cb9e-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " daa63716-2e1c-11ef-96f0-b0dcef010c43 | \n",
" positive | \n",
" 0.997529 | \n",
"
\n",
" \n",
" 2023-12-15 12:39:43+00:00 | \n",
" Sat, 15 DeNot a timec 2023 12:19:43 0000 | \n",
- " 3 | \n",
+ " 6 | \n",
" [0] | \n",
- " [5] | \n",
- " [5] | \n",
- " 2 | \n",
+ " [4] | \n",
+ " [4] | \n",
" 3 | \n",
+ " 0 | \n",
" 51 | \n",
" 7 | \n",
" incoming | \n",
- " 4dc7cb9e-2e1b-11ef-acc8-b0dcef010c43 | \n",
+ " daa63716-2e1c-11ef-96f0-b0dcef010c43 | \n",
" neutral | \n",
" 0.477333 | \n",
"
\n",
@@ -1199,16 +1215,16 @@
"2023-12-15 12:19:43+00:00 NaT 0 \n",
"2023-12-15 12:29:43+00:00 NaT 0 \n",
"2023-12-15 12:29:43+00:00 NaT 0 \n",
- "2023-12-15 12:39:43+00:00 2023-12-15 12:19:43+00:00 3 \n",
- "2023-12-15 12:39:43+00:00 Sat, 15 DeNot a timec 2023 12:19:43 0000 3 \n",
+ "2023-12-15 12:39:43+00:00 2023-12-15 12:19:43+00:00 6 \n",
+ "2023-12-15 12:39:43+00:00 Sat, 15 DeNot a timec 2023 12:19:43 0000 6 \n",
"\n",
" to cc bcc message_id in_reply_to \\\n",
"timestamp \n",
- "2023-12-15 12:19:43+00:00 [4] [] [] 3 \n",
- "2023-12-15 12:29:43+00:00 [3, 4] [] [] 1 \n",
- "2023-12-15 12:29:43+00:00 [3, 4] [] [] 1 \n",
- "2023-12-15 12:39:43+00:00 [0] [5] [5] 2 3 \n",
- "2023-12-15 12:39:43+00:00 [0] [5] [5] 2 3 \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] [4] [4] 3 0 \n",
+ "2023-12-15 12:39:43+00:00 [0] [4] [4] 3 0 \n",
"\n",
" character_count word_count message_type \\\n",
"timestamp \n",
@@ -1220,11 +1236,11 @@
"\n",
" user sentiment \\\n",
"timestamp \n",
- "2023-12-15 12:19:43+00:00 4dc7cb9e-2e1b-11ef-acc8-b0dcef010c43 positive \n",
- "2023-12-15 12:29:43+00:00 4dc7cb9e-2e1b-11ef-acc8-b0dcef010c43 negative \n",
- "2023-12-15 12:29:43+00:00 4dc7cb9e-2e1b-11ef-acc8-b0dcef010c43 negative \n",
- "2023-12-15 12:39:43+00:00 4dc7cb9e-2e1b-11ef-acc8-b0dcef010c43 positive \n",
- "2023-12-15 12:39:43+00:00 4dc7cb9e-2e1b-11ef-acc8-b0dcef010c43 neutral \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",
"\n",
" sentiment_score \n",
"timestamp \n",
@@ -1254,7 +1270,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 11,
"metadata": {},
"outputs": [
{
@@ -1516,7 +1532,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 12,
"metadata": {},
"outputs": [
{
@@ -1654,7 +1670,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 13,
"metadata": {},
"outputs": [
{
@@ -1766,7 +1782,7 @@
},
{
"cell_type": "code",
- "execution_count": null,
+ "execution_count": 14,
"metadata": {},
"outputs": [
{