How to drop columns with empty headers in Pandas?
<p>If I have a DF: </p>

<pre><code>Name1 Name2 NUll Name3 NULL Name4
abc   abc        null       abc
abc   abc        null       abc
abc   abc        null       abc
abc   abc        null       abc
</code></pre>

<p>Can I use dropna, to keep Name3 as a column with all empty values? Yet still drop both Null columns. 
Thank you</p>

<p>What about using <a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.drop.html" rel="nofollow"><code>DataFrame.drop</code></a>?</p>

<pre><code>In [3]: df = pd.read_clipboard()
Out[3]: 
  Name1 Name2  NUll Name3  NULL  Name4
0   abc   abc        null          abc
1   abc   abc        null          abc
2   abc   abc        null          abc
3   abc   abc        null          abc

In [4]: df.drop(["NUll", "NULL"], axis=1)
Out[4]: 
  Name1 Name2 Name3  Name4
0   abc   abc  null    abc
1   abc   abc  null    abc
2   abc   abc  null    abc
3   abc   abc  null    abc
</code></pre>

python pandas