Things to know:
- Timewarrior (
timew
) is a command line tool for tracking time. - Timewarrior-Dataframe is an extension processes
timew export
output using the Pandas Python module.
Install #
Timewarrior can be installed on recent Ubuntu releases from the apt repositories. It can also be found in a number of other distro’s packaging systems.
|
|
pipx can be used to install the timewarrior-dataframe’s twdf
command from it’s git repository.
|
|
Export with “twdf” #
Export time tracking data from timewarrior with timew export [:sometimespec]
to CSV with twdf
as follows.
|
|
Pivot CSV to another time reporting system using Pandas #
Assuming we already exported to CSV with twdf
called “last_month_hours.csv”, use Python and Pandas to…
- Pivot the table by tag/day
- Add days not found in exported data to table
- Round tags to nearest quarter-hour for each day
|
|
I really wish I had the time to contribute those bits of functionality back into the timewarrior-dataframe extension.