From 3dd830bbb37a15f6294e87268f427a2f8f297c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Tue, 27 Apr 2021 23:51:11 -0400 Subject: [PATCH] Document interacting with data in README --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 3518a78..f3dcbbb 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,18 @@ date,project,description If project doesn't exist it will create a new project. +# Learning from this script and continuing development + +Rather than having to type out all 40 plus lines of data processing, you can also run the whole script in the interactive shell and play with it: + +After typing `python3` to get the interactive Python shell in this directory, you can do this line: + +```python +exec(open('pomodoro_to_harvest.py').read()) +``` + +And now you can interact with the resulting timelog DataFrame: + +```python +timelog.query("time>30").loc[:100,["description","time","orig_desc"]].tail(50) +```