-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
Series do not display HTML repr #5563
Comments
It's always been that way. |
Thought so, it's surprising users haven't flagged this earlier then. |
WORKAROUND: |
Series should have a different output from Frames. See #10300 (comment) |
I guess we can't distinguish between a plain dataframe Series e.g. produced by a slice, and a "table-like" series produced by a function like |
FWIW, I think DataFrames having the column names above, and Series having the name below (perhaps as a caption) should be visually distinct enough. |
I've taken an initial stab at this. It's my first contribution to the project so it's probably pretty messy and will need some further work, but if it's the sort of thing you're after and can point me in the right direction of what extra bits are needed then I'm happy to do it. Here's my fork: https://github.com/big-o/pandas. I haven't submitted a PR yet because it needs unit tests and I don't want to start on that until I'm certain that I'm on the right track functionality-wise. It doesn't quite support everything that DataFrame.to_html() does (justify and sparsify options aren't implemented) but it hopefully covers the most important bits. |
would be easier to review as a PR (then we can comment directly on the impl); you can add tests later |
Done! |
Not sure if it's always been this way or if refactoring broke something.
In any case it looks strange when in ipnb:
related to #5550, making reprs consistent.
The text was updated successfully, but these errors were encountered: