Skip to content

Instantly share code, notes, and snippets.

@harterrt
Created December 19, 2016 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harterrt/600ee23a7279ceed8efe999a78868c9d to your computer and use it in GitHub Desktop.
Save harterrt/600ee23a7279ceed8efe999a78868c9d to your computer and use it in GitHub Desktop.
MITM Experiment Analysis
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# coding: utf-8
# In[1]:
from moztelemetry import get_pings_properties, get_one_ping_per_client
from moztelemetry.dataset import Dataset
# In[2]:
pings = Dataset.from_source("telemetry") .where(submissionDate=lambda xx: xx.startswith("201612")) .where(docType="OTHER") .records(sc, sample=1)
# In[3]:
experiment_data = pings.filter(lambda xx: xx['meta']['docType'] == "mitm-prevalence-beta51")
# In[4]:
experiment_data.count()
# In[8]:
example = experiment_data.take(5)
# In[ ]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment