title: Python: remove NaN- named columns
body: <p>I have a dataframe with two columns named <em>nan</em> that are not strings. How could I remove these?</p>
  
  <p>I tried with </p>
  
  <pre><code>df.drop(np.nan, axis=1)
  </code></pre>
  
  <p>which did not work. </p>
  
  <p>I found a dirty way around by renaming nans as below: </p>
  
  <pre><code>df.columns= df.columns.fillna('type')
  df.drop('type', axis=1)
  </code></pre>
  
  <p>However I don't think that this is the most efficient way. Is there a better way to remove columns that are named nans?</p>