title: How to compute the confidence interval of the Difference in Differences method using Python?
body: <p>I'm trying to analyze the total active minutes per user before and after an experiment. Here I've included the associated <a href="https://i.stack.imgur.com/4dmHg.png" rel="nofollow noreferrer">user data before and after the experiment</a> - variant_number = 0 indicates control group while 1 means treatment group. Specifically, I'm interested in the mean (average total active minutes per user).</p>
  <p>First, I calculated the before-after difference in treatment outcome and the before-after difference in control outcome (-183.7 and 19.4 respectively). The difference in differences = 203.1 in this case.</p>
  <p>I'm wondering how I can use Python to construct a 95% confidence interval of the difference in differences? (I can provide more code/context if needed)</p>