Skip to content
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

ENH: Styler.show shorthand alternative to hide #45176

Closed
wants to merge 8 commits into from

Conversation

attack68
Copy link
Contributor

@attack68 attack68 commented Jan 3, 2022

Provides a convenient shorthand for displaying only specified rows as data exploration:

Example

Screenshot 2022-01-03 at 17 59 15

Rendered Docstring

Screenshot 2022-01-03 at 18 03 07

Screenshot 2022-01-03 at 18 03 16

@jreback
Copy link
Contributor

jreback commented Jan 3, 2022

why not just expose .head(), .tail(), .iloc[...] ?

@jreback jreback added the Code Style Code style, linting, code_checks label Jan 3, 2022
@mroeschke mroeschke added Enhancement Styler conditional formatting using DataFrame.style and removed Code Style Code style, linting, code_checks labels Jan 3, 2022
@attack68
Copy link
Contributor Author

attack68 commented Jan 4, 2022

why not just expose .head(), .tail(), .iloc[...] ?

This would have to be a separate Styler implementation of the above. The point is to be able to apply the style functions to the table in entirety but just display certain rows. I.e. highlighting a max in a full-column, yet the section displayed might not contain that max. If you subselect prior to the styling application it loses its purpose in most cases.

@github-actions
Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Feb 12, 2022
@ivasve
Copy link

ivasve commented Jul 23, 2022

Hi @attack68 , it seems that the "pandas-dev.pandas" build has failed. (conflicts in a branch). So this issue is still open.

@attack68
Copy link
Contributor Author

attack68 commented Aug 5, 2022

Closing this, I have a different idea for docs instead which does not include new methods

@attack68 attack68 closed this Aug 5, 2022
@attack68 attack68 deleted the styler_show branch January 25, 2023 18:58
@LinuxIsCool
Copy link

Closing this, I have a different idea for docs instead which does not include new methods

What are your ideas? Where can they be found in the docs?

It's frustrating that max_rows can not be applied to a stylized dataframe as discussed in #42533

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Stale Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Enhance printing options for Styler: head and tail ?
5 participants