Very solid progress on manipulating the date
This commit is contained in:
parent
8bf975e629
commit
9821ee623f
1 changed files with 8 additions and 0 deletions
|
@ -3,3 +3,11 @@ import pandas as pd
|
||||||
|
|
||||||
timelog = pd.read_csv("timelog-titled.csv")
|
timelog = pd.read_csv("timelog-titled.csv")
|
||||||
|
|
||||||
|
timelog["started"] = pd.to_datetime(timelog["started"])
|
||||||
|
timelog["recorded"] = pd.to_datetime(timelog["recorded"])
|
||||||
|
timelog["time"] = 30
|
||||||
|
# A pomodoro started before 3am Eastern time is considered to be a continuation
|
||||||
|
# of the day before, so we are, effectively, on West Coast time for determining
|
||||||
|
# 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["day_of_week"] = timelog["day"].dt.day_name()
|
||||||
|
|
Loading…
Reference in a new issue