Skip to content

Instantly share code, notes, and snippets.

@bsmedberg
Created May 12, 2016 02:00
Show Gist options
  • Save bsmedberg/97ff4573a6a1e6a4e0b6902ec9e359ee to your computer and use it in GitHub Desktop.
Save bsmedberg/97ff4573a6a1e6a4e0b6902ec9e359ee to your computer and use it in GitHub Desktop.
check crash_ping validity
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]:
import pandas as pd
import numpy as np
import plotly.plotly as py
get_ipython().magic(u'pylab inline')
# In[2]:
from moztelemetry import get_pings, get_pings_properties, get_one_ping_per_client, get_clients_history, get_records
# In[5]:
pings = get_pings(sc, app="Firefox", channel="beta", doc_type="crash", submission_date=("20160420", "20160509"), fraction=0.1)
# In[ ]:
get_ipython().magic(u'time pings.first()')
# In[6]:
ping_fields = get_pings_properties(pings, [
"payload/hasCrashEnvironment",
"environment/build/buildId",
"payload/metadata/BuildID",
"application/buildId"
"meta/Timestamp",
"payload/crashDate",
])
# In[ ]:
ping_fields = ping_fields.cache()
ping_fields.count()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment