-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
New Feature Request: df.style.hide_index() to hide a particular index level #25475
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
An issue is fine for feature requests, but we need a simple example what the request is. |
Now doing df.style.hide_index().set_table_attributes('border=1').render() and opening in browser gives I want that there should be an option for level in hide_index() like |
Thanks. Note that MultiIndex support in |
Okay. Just thought that it would be a good to have feature in pandas.style . |
Indeed. Let us know if you're interested in working on it.
…On Thu, Feb 28, 2019 at 8:01 AM sambhavcha ***@***.***> wrote:
Okay. Just thought that it would be a good to have feature in pandas.style
.
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#25475 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQHIiCmP1M-XXSp_0sLsl9P_p7rGlwUks5vR-EngaJpZM4bWvif>
.
|
Yeah of course i would love to work on it. And I would also like to know more about the implementations of pandas too. |
OK, it's all at
https://github.com/pandas-dev/pandas/blob/master/pandas/io/formats/style.py
and
http://pandas-docs.github.io/pandas-docs-travis/development/contributing.html
has the contributing guide. Let us know where you get stuck.
…On Thu, Feb 28, 2019 at 8:11 AM sambhavcha ***@***.***> wrote:
Yeah of course i would love to work on it. And I would also like to know
more about the implementations of pandas too.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#25475 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQHIv15rXTtyhjVlS3dK4DIQtrzGx8Xks5vR-N6gaJpZM4bWvif>
.
|
Great. Thanks for the quick response. |
Problem description
The present implementation of
df.style.hide_index()
removes the complete index while rendering html.It would be better to have an optional input of index level and hide only that index level while rendering.
example
df.style.hide_index(level=1)
It provides more option and flexibility to user.
Sorry to post this as an issue, but I didn't find any option for suggesting new features.
The text was updated successfully, but these errors were encountered: