Advertisement
Guest User

Untitled

a guest
Apr 19th, 2020
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. def check_tuple_in_list(t,n):
  2. for el in list(t):
  3. if el in n.tolist():
  4. pass
  5. else:
  6. return False
  7. return True
  8. pairs_comb = itertools.combinations(cleaned_unique, 2)
  9. for comb_values in pairs_comb:
  10. uniq_zakupki = df_svodka_zakupki_details.groupby(['zakupki_main_details_id']).filter( lambda x: check_tuple_in_list(comb_values, x["challenger_ИНН"]))['zakupki_main_details_id'].unique()
  11. if len(uniq_zakupki)>1:
  12. print('blabla')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement