Skip to content

Nice printing of pandas.Series #1491

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
mhooreman opened this issue May 26, 2016 · 3 comments
Closed

Nice printing of pandas.Series #1491

mhooreman opened this issue May 26, 2016 · 3 comments

Comments

@mhooreman
Copy link

Hello,

If we generate a pandas.DataFrame at the end of a cell, that DataFrame will be nicely shown.

If we do the same with a pandas.Series, it is shown as text. To have the nice display, we have to make a DataFrame of that Series.

Would it be possible to implement the nice printing for Series?

Thanks a lot!

@jorisvandenbossche
Copy link
Contributor

jorisvandenbossche commented May 26, 2016

@mhooreman this is the responsibility of the pandas library, not the notebook, I think.

And there are some issues on this: pandas-dev/pandas#5563, pandas-dev/pandas#8750, pandas-dev/pandas#10300.
Providing a _repr_html_ for series is not difficult, but the question is also how it should look like to be able to distinguish it from a one column dataframe. Contributions are always welcome!

@Carreau Carreau added this to the not notebook milestone Jun 6, 2016
@Carreau
Copy link
Member

Carreau commented Jun 6, 2016

Thanks for responding @jorisvandenbossche , you can also register your own display formatter without patching Pandas.

Closing as this is not something to do here.

@Carreau Carreau closed this as completed Jun 6, 2016
@mhooreman
Copy link
Author

Thanks for your replies

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants