Skip to content
Ying's Blog
Go back

Year in Review: Sleep

Edit page

I wanted to track my sleep patterns over this year in order to try and turn my sleep clock ahead a bit. At some points in time I didn’t get enough sleep and it impacted my ability to work in the office. I needed to be less of a night owl and more of an early riser.

While I didn’t pay attention to making my data machine-readable for all my other personal datasets, my sleep log happened to be the lone exception. Life is so much better with machine readable data. As a data engineer I should know this. You can get a machine-readable dump of my sleep log here.

Turns out I had some difficulty plotting this data using Chart.js, and tried to resort to pandas and matplotlib. The difficulty is in making a plot with times on the Y-axis, and drawing data between two particular dates (e.g. 11PM from one day to 1PM to the next). So instead, I just made a Google Sheets chart and took a screenshot of it 😊

(please open in a new tab in order to see the image in full)

sleep log chart


So! What can we glean from the sleep log data?


Edit page
Share this post on:

Previous Post
Year in Review: Fitness
Next Post
Book Review: "Ready Player One", by Ernest Cline