Skip to content

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

Closed
@TomAugspurger

Description

@TomAugspurger

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.

Metadata

Metadata

Assignees

Labels

Output-Formatting__repr__ of pandas objects, to_string

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions