title: How to change a column name when the current name is NaT in Pandas
body: <p>I have a data frame df1 with two column Names as NaT</p>
  
  <pre><code>Index    NaT     Nat     2019-01-01 00:00:00
   1        A       B        1
   2        C       D        2 
  </code></pre>
  
  <p>How can I change the name of the NaT columns to "Name1" and "Name2"</p>
  
  <pre><code>Index    Name1    Name2     2019-01-01 00:00:00
   1        A       B        1
   2        C       D        2
  </code></pre>
  
  <p>I tried the following statements:</p>
  
  <pre><code>df1.rename(columns = {0:'Name1', 1: 'Name2'}) #(doesn't work)
  
  df1.columns.values[0] = 'Name1' #(doesn't work)
  df1.columns.values[1] = 'Name2' #(doesn't work)
  </code></pre>