Created
May 12, 2016 02:00
-
-
Save bsmedberg/97ff4573a6a1e6a4e0b6902ec9e359ee to your computer and use it in GitHub Desktop.
check crash_ping validity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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