title: Changing multiple column names but not all of them - Pandas Python
body: <p>I would like to know if there is a function to change specific column names but without selecting a specific name or without changing all of them.</p>
  <p>I have the code:</p>
  <pre><code>df=df.rename(columns = {'nameofacolumn':'newname'})
  </code></pre>
  <p>But with it i have to manually change each one of them writing each name.
  Also to change all of them I have</p>
  <pre><code>df = df.columns['name1','name2','etc']
  </code></pre>
  <p>I would like to have a function to change columns 1 and 3 without writing their names just stating their location.</p>