Skip to content

Instantly share code, notes, and snippets.

@nwb
Created November 15, 2010 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nwb/700810 to your computer and use it in GitHub Desktop.
Save nwb/700810 to your computer and use it in GitHub Desktop.
Sorting taxons
x_ids = taxon_x.product_ids
y_ids = taxon_y.product_ids
intersect = y_ids & x_ids
sorted_ids = intersect.concat(x_ids - intersect)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment