Recently, I’ve been working on a project that requires the element-wise comparison of many rows. The goal is to calculate a sort of similarity score between two tables. A simplified version of the data/problem looks like this: Table X IDV1V2V3V4V5 X193245 X291211 Table Y IDV1V2V3V4V5 Y193311 Y211111 Y399798 Each row of Table X is compared to each row of Table Y and the elements are replaced with a boolean. This happens element-wise, so X1, V1 is compared to Y1, V1, X1, V2 is compared to Y1,...