Double loop to create a dataframe

A post was merged into an existing topic: distance between two documents with jaccard distance