Sub topic 4
Tracking Your Energy for One to Two Weeks
This chapter covers how to collect your own energy data. You will design a log, record it for one to two weeks, and load it with a short script. The next chapter shows how to read the pattern.
Prerequisites
This chapter assumes you know three things:
- You can use a calendar or to-do list.
- You have a work or study day with some flexibility in the order of tasks.
- You can run a short Python script. This is only needed for the optional analysis step. A spreadsheet works just as well.
You should also have read the earlier chapters on daily energy rhythms, chronotype and task demand. This chapter uses the idea that tasks differ in how much energy they need.
Why log instead of guessing
Most people believe they know when they work best. Those beliefs are often based on a few memorable days, or on what they think a "morning person" or "night owl" should feel. Memory favors vivid events. You remember the brilliant morning when you finished a report. You forget the five ordinary mornings spent on email.
An energy log replaces memory with records made close to the moment. It is a small dataset about one person: you. The goal is to find out when you tend to feel alert, when you tend to feel flat, and how that lines up with the work you do.
A log has three practical advantages:
- It is written near the time, so it is less distorted by hindsight.
- It covers many days, so one unusual day carries less weight.
- It is written down, so you can check a belief against it.
What to record
Keep the log small. If it takes more than about ten seconds per entry, you will stop doing it. Each entry has four fields:
| Field | What it holds | Example |
|---|---|---|
| date | The calendar day, in YYYY-MM-DD form | 2026-11-23 |
| hour | The hour of the day, 0 to 23 | 14 |
| energy | Your self-rated energy from 1 to 5 | 2 |
| task | What you were doing | Answer email |
Here is what the scale means. Write the definitions down once and keep them fixed for the whole log.
| Rating | Meaning |
|---|---|
| 1 | Exhausted. Reading a paragraph is hard. |
| 2 | Low. You can do routine work but need effort to stay on it. |
| 3 | Moderate. You can focus, but it takes some effort to start. |
| 4 | Good. Focus comes easily. |
| 5 | Very high. Hard problems feel manageable. |
Rate how alert and able to concentrate you feel, not how much you like the task. A boring task can be done with high energy. A pleasant task can be done with low energy. The two are separate things, and mixing them hides the pattern.
The log format
A CSV file (comma-separated values, a plain text table with one row per line) is a good choice. Any spreadsheet can open it, and a script can read it.
date,hour,energy,task
2026-11-23,9,4,Write project proposal
2026-11-23,11,4,Review pull requests
2026-11-23,14,2,Answer email
2026-11-23,16,3,Update task list
2026-11-24,9,5,Write project proposal
2026-11-24,14,2,Expense reportSave this as energy_log.csv. The header line must come first. Keep commas out of the task text, or put the text in double quotes, so each row has exactly four fields.
How and when to record
Pick a method you will actually use. A paper notebook, a spreadsheet, a notes app and a calendar reminder all work. The method matters less than the habit.
Sampling schedule
Take a reading at fixed times rather than whenever you remember. Fixed times give you comparable data. If you only log when you feel good, or only when you feel terrible, the result is biased toward the extremes.
A workable schedule for a typical day:
- Set a reminder for the top of each working hour, or every two hours if hourly is too much.
- When the reminder fires, rate your energy at that moment.
- Write down the task you were doing, or the one you just finished.
- Move on. Do not reflect or analyze at this point.
If you miss a reading, leave it blank. Do not fill it in later from memory. A gap is better than an invented number.
How long to track
Aim for 10 to 14 days of working time, which is two work weeks. One week gives you at most five samples per hour, and a single odd day can shift an average noticeably. Two weeks gives you up to ten.
Fewer than five working days is not enough to see anything beyond noise. More than two weeks has diminishing returns, and the effort of logging tends to fall off.
Keeping the data honest
Self-ratings are subjective, so a few habits help keep them consistent.
- Rate first, then look at context. Decide your number before you think about what the day has been like. Otherwise a bad meeting colors the whole afternoon.
- Use the fixed scale. Do not drift. If a 4 means "focus comes easily" on Monday, it should mean the same on Friday.
- Log ordinary days. Do not skip days that feel unrepresentative. A bad day is still your data. You can annotate it instead.
- Do not change your behavior to make the log look good. For these two weeks, work as you normally would. If you rearrange your day now, you cannot tell whether the pattern is yours or your experiment's.
Recording confounders
Several factors can move your energy without being part of your daily rhythm. A simple way to handle them is a short note on days when something unusual happens. You can add an optional fifth column called note, or keep a separate list of dates.
Common confounders:
- A short night of sleep.
- Caffeine, especially a late coffee or a skipped one.
- A large lunch.
- Illness, travel or a deadline spike.
- A meeting that ran long, or a conflict.
You do not need to measure these precisely. A flag on the date is enough to let you set that day aside later if it looks like an outlier.
A common trap: task and time are tangled
You will likely do similar tasks at similar hours. If you always answer email at 14:00, then low energy at 14:00 could reflect the time of day, the task, or both. The log cannot separate them on its own.
You can reduce the problem by varying the task a little, when you can do so without disrupting your work. For example, do one piece of routine work in the morning on a few days. Do not force this. Treat it as a way to learn more, not as a requirement.
Analyzing the log with a script
Once you have at least a week of entries, you can summarize them. The script below reads the CSV and averages the self-rated energy for each hour of the day.
import csv
from collections import defaultdict
scores_by_hour = defaultdict(list)
with open("energy_log.csv", newline="") as f:
for row in csv.DictReader(f):
scores_by_hour[int(row["hour"])].append(int(row["energy"]))
for hour in sorted(scores_by_hour):
scores = scores_by_hour[hour]
average = sum(scores) / len(scores)
print(f"{hour:02d}:00 average {average:.1f} ({len(scores)} entries)")Here is how it works:
defaultdict(list)creates a dictionary where each new key starts with an empty list. You can append to a key without checking whether it exists.csv.DictReaderreads each row as a dictionary keyed by the header names. This is why the header line matters.- Each row adds its energy score to the list for its hour. Both values are converted from text to integers.
- The final loop goes through the hours in order, computes the mean, and prints it with the number of entries.
With the six sample rows above, the output is:
09:00 average 4.5 (2 entries)
11:00 average 4.0 (1 entries)
14:00 average 2.0 (2 entries)
16:00 average 3.0 (1 entries)Reading the entry count
The count in parentheses is as important as the average. An average of 4.0 from one entry tells you almost nothing. An average of 4.0 from nine entries is much more reliable. Treat any hour with fewer than about four entries as unclear.
Common errors when running the script
| Symptom | Likely cause | Fix |
|---|---|---|
| `FileNotFoundError` | The script is run from a different folder than the CSV | Run it in the folder with the file, or give the full path |
| `KeyError: 'hour'` | The header line is missing or spelled differently | Check the first line reads `date,hour,energy,task` |
| `ValueError: invalid literal for int()` | A blank or non-numeric value in the hour or energy column | Remove or correct that row |
| Hours appear with very few entries | Irregular logging times | Use a fixed reminder schedule |
If you log in a spreadsheet, the same result comes from a pivot table with hour as the row and the average of energy as the value.
Edge cases
- Shift work or irregular hours. If your day does not follow a fixed clock, log the hour since waking as well, or instead. You will then see the pattern relative to your own day, not the clock.
- Days off. Track them separately, or skip them for the first pass. Your rhythm on a free day may differ from your rhythm on a working day.
- Half-hour tasks. Log by the hour. Fine detail adds effort without improving the picture.
- Time zone changes. If you travel across time zones during the two weeks, mark those days as confounded and consider extending the log.
- Missed days. A few gaps are fine. If you miss more than three or four days, extend the period instead of trying to patch the gaps.
What you have at the end
After one to two weeks you should have a file with roughly 40 to 100 rows, a set of notes on unusual days, and an hourly summary from the script or a spreadsheet. You are not asked to interpret it yet. The next chapter explains how to turn the hourly averages into high, medium and low periods and how to judge whether a pattern is strong enough to act on.
Exercise
You log your energy only when you happen to remember, and you notice that most of your entries are made after lunch. Why is this a problem for analysis, and what is the fix?
Show answer
Entries made at irregular times over-represent the hours when you remember to log, so some hours have many entries and others have almost none. The averages for sparse hours are unreliable, and the choice of when to log may itself depend on how you feel. The fix is a fixed sampling schedule, using reminders at set times, and leaving a reading blank instead of filling it in later from memory.
Exercise
The script prints "10:00 average 5.0 (1 entries)" and "14:00 average 2.3 (8 entries)". Which result should you trust more, and why?
Show answer
The 14:00 result. It is based on eight entries, so one unusual day has little effect. The 10:00 average comes from a single entry and could be a one-off. Treat hours with fewer than about four entries as unclear and collect more data before acting on them.
Exercise
You always answer email at 14:00 and always rate your energy as 2 at that time. What can you conclude about your afternoon energy, and what could you do to learn more?
Show answer
You cannot separate the time of day from the task. The low rating might reflect an afternoon dip, a dislike of email, or both. To learn more, occasionally do a different task at 14:00, or do email at another hour, for a few days. Compare the ratings. Make sure you rate alertness and not how pleasant the task is.