title: Pandas: Query using Levenshtein Distance
body: <p>Given the following DataSet:</p>
  
  <pre><code>name;sex;city;age
  john;male;newyork;20
  jack;male;newyork;21
  mary;female;losangeles;45
  maryanne;female;losangeles;48
  eric;male;san francisco;26
  jenny;female;boston2;30
  mattia;na;BostonDynamics;50
  </code></pre>
  
  <p>and the constraints:</p>
  
  <pre><code>source = "john"
  max_dist = 2
  </code></pre>
  
  <p>my goal is to get a <code>list</code> of all name values having a <code>Levenshtein Distance</code> with the <code>source</code> that is <code>&lt;= max_dist</code>. Is it possible to do this by using the <code>pandas.DataFrame.query()</code> method or it has to be done in a different way?</p>