pydata/pandas — Issue #890: DataFrame.to_html columns broken
Author: lodagro
Created: 2012-03-09 14:07:51+00:00
State: open

Reported on [mailing list](https://groups.google.com/forum/?fromgroups#!topic/pystatsmodels/lK1odlK5zjU), columns argument in ```DataFrame.to_html()``` broken.

```python
In [31]: df
Out[31]:
a b c d
0 4 -0.548572 -0.333272 NaN
1 1 -0.502314 0.975798 NaN
2 9 0.283227 1.486831 NaN
3 3 1.514658 -0.747403 NaN
4 7 -1.415763 -0.697034 NaN

In [32]: print df.to_html(columns=['a'])

a
b
c
d

0
4
-0.548572
-0.333272
NaN

1
1
-0.502314
0.975798
NaN

2
9
0.283227
1.486831
NaN

3
3
1.514658
-0.747403
NaN

4
7
-1.415763
-0.697034
NaN

```