title: Pandas – converting yes : no to True : False failing
body: <p>My best efforts to convert a column with 'yes' 'no' values to True, False or 1 , 0 are failing. The column is 'subscribed'.</p>
  
  <pre><code>df.subscribed.unique() returns
  array(['no', 'yes'], dtype=object)
  </code></pre>
  
  <p>Tried the following. None of them worked:</p>
  
  <pre><code>df.subscribed = df.subscribed.astype(int)
  df.subscribed.map(dict(yes=1, no=0))
  df.replace({'subscribed': {'yes': 1, 'no': 0}})
  d = {'yes': True, 'no': False}
  df['subscribed'].map(d)
  </code></pre>