title: How can I calculate the Levenshtein distance between all rows in two dataframes and output the Levenshtein score for each pair?
body: <p>I'm trying to calculate the Levenshtein distance between two dataframes (dfa &amp; dfb) as set out below.</p>
  
  <p>dfa:</p>
  
  <pre><code>Name      Addresss     ID  
  Name1a    Address1a    ID1a
  Name2a    Address2a    ID2a
  </code></pre>
  
  <p>dfb:</p>
  
  <pre><code>Name      Addresss      ID  
  Name1b    Address1b   ID1b
  Name2b    Address2b   ID2b
  </code></pre>
  
  <p>I understand computing the distance between two strings but I am a bit confused as to how I could do a set of columns against another with the output looking something like this with it displaying all pairs and scores:</p>
  
  <p>Output:</p>
  
  <pre><code>Name      Name      LevScore
  Name1a    Name1b       0.87
  Name1a    Name2b       0.45
  Name1a    Name3b       0.26
  Name2a    Name1b       0.92
  Name2a    Name2b       0.67
  Name2a    Name3b       0.56
  etc
  </code></pre>
  
  <p>Thanks in advance!</p>
  
  <p>Manesh</p>