title: Using to_datetime several columns names
body: <p>I am working with several CSV's that first N columns are information and then the next Ms (M is big) columns are information regarding a date.</p>
  <p>This is the dataframe picture
  <a href="https://i.stack.imgur.com/s9i83.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s9i83.png" alt="This is the dataframe picture" /></a></p>
  <p>I need to set just the columns between N+1 to N+M - 1 columns name to date format.</p>
  <p>I tried this, in this case N+1 = 5, no matter M, I suppose that I can use -1 to not affect the last column name.</p>
  <pre><code>ContDiarios.columns[5:-1] = pd.to_datetime(ContDiarios.columns[5:-1])
  </code></pre>
  <p>but I get the following error:</p>
  <blockquote>
  <p>TypeError: Index does not support mutable operations</p>
  </blockquote>