From c5f48e0602afd0c1008af95642aee23cc9513731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 28 Apr 2021 11:41:46 -0400 Subject: [PATCH] Add note on another way data can be manipulated after running the whole script --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index f3dcbbb..baa1a1e 100644 --- a/README.md +++ b/README.md @@ -29,3 +29,11 @@ And now you can interact with the resulting timelog DataFrame: ```python timelog.query("time>30").loc[:100,["description","time","orig_desc"]].tail(50) ``` + +Or the slightly more processed tl DataFrame, for example to get the hours worked per project: + +```python +tl.groupby("project").agg({"time": "sum"})["time"]/60 +``` + +And yeah you can just sort of tack on the column you want to mess with and do an operation like that!