Skip to content

ENH: Enhance printing options for Styler: head and tail ? #42533

Closed as not planned
@dennymarcels

Description

@dennymarcels

Is your feature request related to a problem?

More like an improvement.

Describe the solution you'd like

I just started playing around with pandas styling, and I noticed there is no way to print only the head and/or tail of a stylized DataFrame. It would be awesome if the styling could be applied to the whole df but then we could print only selected rows, like head and/or tail.

API breaking implications

I guess there could be a parameter passed to methods such as bar, or a new method to be appended to the end of a call.

Describe alternatives you've considered

I can apply the style to a slice of a DataFrame but then the styling function is applied to this slice only. What if I want to highlight_max to the whole df but print head/tail only?

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIO HTMLread_html, to_html, Styler.apply, Styler.applymapStylerconditional formatting using DataFrame.style

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions