from collections import defaultdict
def suggest_bundles(orders, min_support=0.02):
pairs = defaultdict(int)
for order in orders:
items = order['products']
for i in range(len(items)):
for j in range(i+1, len(items)):
pairs[(items[i], items[j])] += 1
bundles = [(a, b, count) for (a, b), count in pairs.items()
if count / len(orders) >= min_support]
return sorted(bundles, key=lambda x: -x[2])