Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def check_tuple_in_list(t,n):
- for el in list(t):
- if el in n.tolist():
- pass
- else:
- return False
- return True
- pairs_comb = itertools.combinations(cleaned_unique, 2)
- for comb_values in pairs_comb:
- 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()
- if len(uniq_zakupki)>1:
- print('blabla')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement