Add note on another way data can be manipulated after running the whole script

This commit is contained in:
benjamin melançon 2021-04-28 11:41:46 -04:00
parent f706f0b1e6
commit c5f48e0602

View file

@ -29,3 +29,11 @@ And now you can interact with the resulting timelog DataFrame:
```python ```python
timelog.query("time>30").loc[:100,["description","time","orig_desc"]].tail(50) 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!