The payoff: combine multiple entries in the same day into one larger time unit
This commit is contained in:
parent
5f35d57024
commit
22a2bbae39
1 changed files with 3 additions and 0 deletions
|
@ -11,3 +11,6 @@ timelog["time"] = 30
|
||||||
# the day we want to associate a time entry with. PomodoroPrompt saves as UTC.
|
# the day we want to associate a time entry with. PomodoroPrompt saves as UTC.
|
||||||
timelog["date"] = timelog["started"].dt.tz_convert("US/Pacific").dt.date
|
timelog["date"] = timelog["started"].dt.tz_convert("US/Pacific").dt.date
|
||||||
timelog["day_of_week"] = pd.to_datetime(timelog["date"]).dt.day_name()
|
timelog["day_of_week"] = pd.to_datetime(timelog["date"]).dt.day_name()
|
||||||
|
|
||||||
|
# Condense duplicate entries by date, summing the minutes spent.
|
||||||
|
timelog = timelog.groupby(["date", "description"]).agg({"time": ['sum']})
|
||||||
|
|
Loading…
Reference in a new issue