title: Pandas Get Row with Smallest Distance Between Strings (Closest Match)
body: <p>Suppose I have a dataframe with an index column filled with strings. Now, suppose I have very similar but somewhat different strings that I want to use to look up rows within the dataframe. How would I do this since they aren't identical? My guess would be to simply choose the row with the lowest distance between the two strings, but I'm not really sure how I could do that efficiently.</p>
  <p>For example, if my dataframe is:</p>
  <p><a href="https://i.stack.imgur.com/pRO31.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pRO31.png" alt="enter image description here" /></a></p>
  <p>and I want to lookup &quot;Lord of the rings&quot;, I should get the 2nd row. How would I do this in pandas?</p>