Skip to content

ENH: HTML formatting for Series in Jupyter notebook #8750

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

Open
SylvainCorlay opened this issue Nov 7, 2014 · 4 comments
Open

ENH: HTML formatting for Series in Jupyter notebook #8750

SylvainCorlay opened this issue Nov 7, 2014 · 4 comments
Labels
Enhancement IO HTML read_html, to_html, Styler.apply, Styler.applymap

Comments

@SylvainCorlay
Copy link
Contributor

Unlike pandas.DataFrame, pandas.Series does not have the methods to be converted to an html table.

@TomAugspurger
Copy link
Contributor

Dupe of #5563

It just hasn't been too high of a priority yet. If you're interested in a PR we'd gladly take it though.

@jorisvandenbossche
Copy link
Member

I think it could be seen as two seperate issue (the availability of to_html vs the display in the notebook).
For to_html we could very easily start with something (basically something like s.to_frame().to_html()), but for the display there will probably some more discussion on how it should exactly look (to still have a clear distinction with a one column dataframe).

@TomAugspurger TomAugspurger reopened this Nov 7, 2014
@TomAugspurger
Copy link
Contributor

Focus on to_html in this issue then?

@jreback jreback added IO HTML read_html, to_html, Styler.apply, Styler.applymap Output-Formatting __repr__ of pandas objects, to_string labels Nov 7, 2014
@jreback jreback added this to the 0.16.0 milestone Nov 7, 2014
@jreback jreback modified the milestones: 0.16.0, Next Major Release Mar 6, 2015
lexual added a commit to lexual/pandas that referenced this issue Nov 14, 2015
@jorisvandenbossche jorisvandenbossche changed the title pandas.Series lacks the _repr_html_ and the to_html methods ENH: Series to_html method Jun 18, 2016
@jorisvandenbossche jorisvandenbossche added Enhancement and removed API Design Output-Formatting __repr__ of pandas objects, to_string labels Jun 18, 2016
@wesm wesm changed the title ENH: Series to_html method ENH: HTML formatting for Series in Jupyter notebook Jul 6, 2018
@rjurney
Copy link

rjurney commented Apr 26, 2020

This would be so awesome - why have ugly Series?

@mroeschke mroeschke removed this from the Contributions Welcome milestone Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement IO HTML read_html, to_html, Styler.apply, Styler.applymap
Projects
None yet
Development

No branches or pull requests

6 participants