Don't overwrite timelog. Max for started isn't working here, weirdly
This commit is contained in:
parent
22a2bbae39
commit
a42dd0b5e2
1 changed files with 1 additions and 1 deletions
|
@ -13,4 +13,4 @@ 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.
|
||||
timelog = timelog.groupby(["date", "description"]).agg({"time": ['sum']})
|
||||
tl = timelog.groupby(["date", "description"]).agg({"time": ['sum']}, {"started": ['max']}).reset_index()
|
||||
|
|
Loading…
Reference in a new issue