Created
June 18, 2016 02:07
-
-
Save yodlegists/fc633cfa77efb501800b2a82d30704e4 to your computer and use it in GitHub Desktop.
Indices not in snapshot
This file contains hidden or 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
| 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