From f51acf4fecbace283cc3cc37f8ca6f6660fa8e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Tue, 27 Apr 2021 21:58:19 -0400 Subject: [PATCH] Aggregate by project as well as description now that we have it --- pomodoro_to_harvest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index 02f8d0a..14dc50b 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -19,4 +19,4 @@ timelog['description'] = (np.where(timelog['description'].str.contains(': '), ti # Condense duplicate entries by date, summing the minutes spent, and listing # the first started and last recorded times for each task. -tl = timelog.groupby(["date", "description"]).agg({"time": 'sum', "started": 'min', "recorded": 'max'}).reset_index() +tl = timelog.groupby(["date", "project", "description"]).agg({"time": 'sum', "started": 'min', "recorded": 'max'}).reset_index()