Skip to content

Instantly share code, notes, and snippets.

@maurodoglio
Created August 16, 2016 13:33
Show Gist options
  • Save maurodoglio/8e5f84b5d8e6da51c6a95ea0522b6bc4 to your computer and use it in GitHub Desktop.
Save maurodoglio/8e5f84b5d8e6da51c6a95ea0522b6bc4 to your computer and use it in GitHub Desktop.
Retrieve pings by docType and submissionDate
dataset = Dataset.from_source('telemetry)
filtered_dataset = dataset.where(docType='main',
submissionDate=lambda x: x.startswith('20160701'))
pings = filtered_dataset.records(sc, sample=0.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment