Add comment about criticality of fill na
This commit is contained in:
parent
ce13e32f7d
commit
f706f0b1e6
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ for preferred, alternatives in replacement_project_names.items():
|
||||||
|
|
||||||
# Condense duplicate entries by date, summing the minutes spent, and listing
|
# Condense duplicate entries by date, summing the minutes spent, and listing
|
||||||
# the first started and last recorded times for each task.
|
# 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 = timelog.groupby(["date", timelog.project.fillna(""), "description"]).agg({"time": 'sum', "started": 'min', "recorded": 'max'}).reset_index()
|
||||||
|
|
||||||
tl.to_csv('harvest-ready.csv', index = False)
|
tl.to_csv('harvest-ready.csv', index = False)
|
||||||
|
|
Loading…
Reference in a new issue