diff --git a/pomodoro_to_harvest.py b/pomodoro_to_harvest.py index bb9be5d..f9a1463 100644 --- a/pomodoro_to_harvest.py +++ b/pomodoro_to_harvest.py @@ -12,5 +12,6 @@ timelog["time"] = 30 timelog["date"] = timelog["started"].dt.tz_convert("US/Pacific").dt.date timelog["day_of_week"] = pd.to_datetime(timelog["date"]).dt.day_name() -# Condense duplicate entries by date, summing the minutes spent. -tl = timelog.groupby(["date", "description"]).agg({"time": ['sum']}, {"started": ['max']}).reset_index() +# 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()