Skip to content

Instantly share code, notes, and snippets.

@ibeauregard
Created June 11, 2021 17:55
Show Gist options
  • Save ibeauregard/c64c516926e2604f27a6f6998cb64c46 to your computer and use it in GitHub Desktop.
Save ibeauregard/c64c516926e2604f27a6f6998cb64c46 to your computer and use it in GitHub Desktop.
def _get_groups(self, tables):
groups = [collections.defaultdict(list), collections.defaultdict(list)]
for index in range(2):
for record in tables[index]:
groups[index][record[self._on_keys[index]]].append(record)
return groups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment