Skip to content

Instantly share code, notes, and snippets.

@serenamm
Last active September 9, 2019 18:40
Show Gist options
  • Save serenamm/065b379be986dc9e314639d8ce2bc64e to your computer and use it in GitHub Desktop.
Save serenamm/065b379be986dc9e314639d8ce2bc64e to your computer and use it in GitHub Desktop.
'''
SELECT
s.item_id_1,
s.item_id_2,
s.similarity_score
FROM product_similarity s
{same_category_q}
'''.format(same_category_q='') # Depends on value of same_category boolean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment