Skip to content

Instantly share code, notes, and snippets.

@briandailey
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save briandailey/351945788a0718b526dc to your computer and use it in GitHub Desktop.

Select an option

Save briandailey/351945788a0718b526dc to your computer and use it in GitHub Desktop.
def combined_results(r1, r2, key):
first_keys = [row[key] for row in r1]
[r1.append(row) for row in r2 if row[key] not in first_keys]
return r1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment