-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Pandas Series should provide to_html method #8829
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
Comments
I'll add to the list. But would be really helpful if you would submit a pull-request to fix. |
@scls19fr Can you give us an example of why this is necessary? Are you converting A |
@cpcloud I'm displaying sensor values to a Python Flask app. Values of a sensor are stored in a |
oh ok sounds interesting. what's wrong with calling |
@cpcloud yes quite verbose... that was just my point of view! But anyway I was also having trouble with see #8496 I've defined this uggly function
so I can also do
or mix both using isintance and write something like
|
Adding a note here because I'm working on #16180, which requests a If I'm interpreting correctly, implementing |
Currently, a Therefore, even if |
Checking in here. Would a |
I don’t have an objection to to_html for Series since we have that same signature for many other formats |
I suspect that |
Can |
Not quite, as we need the Series repr to be visually distinct from the
equivalent 1-column DataFrame.
Even just placing the Series and Index names at the bottom, rather than the
top, of the output table may be sufficient.
…On Fri, Mar 8, 2019 at 12:49 PM Benjamin Zaitlen ***@***.***> wrote:
Can Series._repr_html_ call to Series.to_frame()._repr_html_ ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8829 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQHIpWOwCu3ZYInpdvTAvG4hLwpCSmaks5vUrDWgaJpZM4C7-kN>
.
|
There is some small amount of work here: #27228 |
Hello,
Pandas Series provide
to_json
method but they doesn't provideto_html
method.Adding
to_html
will avoid user to convert apandas.core.series.Series
to apandas.core.frame.DataFrame
in order to output HTML file usings.to_frame().to_html(...)
but directly uses.to_html(...)
see also #8825
Kind regards
The text was updated successfully, but these errors were encountered: