title: Mapping numeric values to string
body: <p>Here I have a dataset:</p>
  
  <p><a href="https://i.stack.imgur.com/U1drS.png" rel="nofollow noreferrer">Dataset</a></p>
  
  <p>I want to map numeric value to <code>CASE_STATUS</code> values</p>
  
  <pre><code>df.CASE_STATUS.value_counts()
  
  CERTIFIED              2615623
  CERTIFIED-WITHDRAWN     202659
  DENIED                   94346
  </code></pre>
  
  <p>Here is what I do but have a <code>string indices must be integers, not str</code> error:</p>
  
  <pre><code>for dataset in df:
      dataset['CASE_STATUS'] = dataset['CASE_STATUS'].map( {'CERTIFIED':1 , 'CERTIFIED-WITHDRAWN': 1, 'DENIED': 0} ).astype(int)
  </code></pre>
  
  <p>How should I map values to <code>CASE_STATUS</code>?</p>