Output all entries, reset index for fun, and write out our CSV file
This commit is contained in:
parent
9e97b6b250
commit
761d04204a
1 changed files with 3 additions and 1 deletions
|
@ -57,4 +57,6 @@ timelog['description'] = timelog['description'].str.strip()
|
|||
|
||||
# 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", "project", "description"]).agg({"time": 'sum', "started": 'min', "recorded": 'max'}).reset_index()
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue