Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataFrame.to_html columns broken #890

lodagro opened this issue Mar 9, 2012 · 0 comments


Copy link

commented Mar 9, 2012

Reported on mailing list, columns argument in DataFrame.to_html() broken.

In [31]: df
   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'])
<table border="1">
      <td> 4</td>
      <td> 1</td>
      <td> 0.975798</td>
      <td> 9</td>
      <td> 0.283227</td>
      <td> 1.486831</td>
      <td> 3</td>
      <td> 1.514658</td>
      <td> 7</td>

@wesm wesm closed this in edc90b3 Mar 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.