title: Changing a specific column name in pandas DataFrame
body: <p>I was looking for an elegant way to change a specified column name in a <code>DataFrame</code>.</p>
  
  <p>play data ...</p>
  
  <pre><code>import pandas as pd
  d = {
           'one': [1, 2, 3, 4, 5],
           'two': [9, 8, 7, 6, 5],
           'three': ['a', 'b', 'c', 'd', 'e']
      }
  df = pd.DataFrame(d)
  </code></pre>
  
  <p>The most elegant solution I have found so far ...</p>
  
  <pre><code>names = df.columns.tolist()
  names[names.index('two')] = 'new_name'
  df.columns = names
  </code></pre>
  
  <p>I was hoping for a simple one-liner ... this attempt failed ...</p>
  
  <pre><code>df.columns[df.columns.tolist().index('one')] = 'another_name'
  </code></pre>
  
  <p>Any hints gratefully received.</p>