Test Code

import tripleblind as tb

# Get pointers to datasets from two different businesses
trips = tb.TableAsset.cast(tb.Asset.find_dataset(f“Train Passengers”)[0])
purchases = tb.TableAsset.cast(tb.Asset.find_dataset(f“Shop Transactions”)[0])

# Find common customers using sensitive information without exposing private info
overlap = purchases.blind_join(
intersect_with=trips,
match_column=[“address”, “customer_address”],
match_fuzziness=0.3,
return_columns=[“cust_id”],
)

print(“Number of common customers: “)
print(len(overlap.dataframe[“cust_id”].value_counts()))