Skip to content

BUG: info _repr_html doesn't show class name #7105

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

Closed
TomAugspurger opened this issue May 13, 2014 · 1 comment
Closed

BUG: info _repr_html doesn't show class name #7105

TomAugspurger opened this issue May 13, 2014 · 1 comment
Assignees
Labels
Output-Formatting __repr__ of pandas objects, to_string
Milestone

Comments

@TomAugspurger
Copy link
Contributor

This is only for the info repr. It's not a problem with df.info().

http://nbviewer.ipython.org/gist/TomAugspurger/4c83a646ffb93d5ee978

From a console attached to the same session:

In [1]: df
Out[5]: 
<class 'pandas.core.frame.DataFrame'>
Int64Index: 2 entries, 0 to 1
Data columns (total 2 columns):
0    2 non-null float64
1    2 non-null float64
dtypes: float64(2)

I think the <class ... > is being interpreted as an HTML tag. We'll need to escape it. Our test checks whether <class> is in the repr, which it is, it's just not visible.

@TomAugspurger
Copy link
Contributor Author

@jreback I'll rebase this on top of #7105 and then move the note to your .. _whatsnew_0140.display: section.

TomAugspurger pushed a commit to TomAugspurger/pandas that referenced this issue May 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant