title: Autocorrect column value using List in Python
body: <p>I have eben trying to match state_name column with the List value , Its working well but when The Input Data becomes case sensitive</p>
  <p>Input Data:</p>
  <pre><code>    state_name
  0   Assan
  1   Andhra Prade5h
  2   M1zoram
  3   Uttar Pr8desh
  4   MIZORAM
  </code></pre>
  <p><strong>Script I have been using:</strong></p>
  <pre><code>from difflib import SequenceMatcher
  
  lst = ['Assam','Andhra Pradesh', 'Mizoram', 'Uttar Pradesh'] #Correct Name List
  
  def closest(s):
      highest = 0
      result = ''
      for i in lst:
          temp = SequenceMatcher(None, s, i).ratio() #Similarity Ratio
          if temp &gt; highest:
              highest = temp
              result = i
      return result
  
  
  df = pd.DataFrame(['Assan','Andhra Prade5h','M1zoram','Uttar Pr8desh'], columns = [&quot;state_name&quot;])
  
  df['state_name'] = df['state_name'].apply(lambda x: closest(x))
  
  #Output After
     
  
       state_name
      0   Assam
      1   Andhra Pradesh
      2   Mizoram
      3   Uttar Pradesh
      4   Assam
  </code></pre>
  <p>I am getting Wrong Values when Input value is Case sensitive For Eg. MIZORAM</p>