Skip to content

Instantly share code, notes, and snippets.

@yodlegists
Created June 18, 2016 02:07
Show Gist options
  • Select an option

  • Save yodlegists/fc633cfa77efb501800b2a82d30704e4 to your computer and use it in GitHub Desktop.

Select an option

Save yodlegists/fc633cfa77efb501800b2a82d30704e4 to your computer and use it in GitHub Desktop.
Indices not in snapshot
def get_indices_not_in_snapshot(prod_indices, snapshot_indices):
prefixed_snapshot_indices = ["prod_"+index for index in snapshot_indices]
return list(set(prod_indices).difference(prefixed_snapshot_indices))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment