... sleep: summary


You can download this dataset by download the file here. You can also fetch it from the command line by running;

wget https://calmcode.io/datasets/sleep_deprived_coding.csv

The original research paper of the dataset can be found here. Feel free to check the datasets portion of the website to see some details about the dataset.

With that out of the way. Let's write our first summary for this analysis.

import numpy as np
import pandas as pd
import matplotlib.pylab as plt
df = pd.read_csv("/<path>/sleep_deprived_coding.csv")

  .agg(n=('id', 'count'),
      mean_unit_tests=('passed_unit_tests', np.mean),
      mean_asserts=('passed_asserts', np.mean),
      mean_user_stories=('tackled_user_stories', np.mean),))

Feedback? See an issue? Something unclear? Feel free to mention it here.

If you want to be kept up to date, consider signing up for the newsletter.