From f706f0b1e65ff741f5ea5c38ce0d9752e87c9a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 28 Apr 2021 11:15:53 -0400 Subject: [PATCH] Add comment about criticality of fill na --- pomodoro_to_harvest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index bf21582..48b30c9 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -76,6 +76,7 @@ for preferred, alternatives in replacement_project_names.items(): # Condense duplicate entries by date, summing the minutes spent, and listing # the first started and last recorded times for each task. +# The fillna is essential or we drop entries with blank ('None') projects. tl = timelog.groupby(["date", timelog.project.fillna(""), "description"]).agg({"time": 'sum', "started": 'min', "recorded": 'max'}).reset_index() tl.to_csv('harvest-ready.csv', index = False)