count_window Counter list set for in enumerate group for in enumerate

1
count_window = Counter(list(set([(a, b) for i, a in enumerate(group) for j, b in enumerate(group) if i != j and i > j])))