Skip to content

DEPR: hide_index and hide_columns in favour of hide(axis=..)? #43758

Closed
@attack68

Description

@attack68

Is your feature request related to a problem?

When Styler was developed it had hide_index, which hid the whole index, and hide_columns, which performed a separate function of hiding specific columns of data whilst still showing the column headers.

After extending the functions in 1.3.0, 1.4.0, both methods now have the same signature and function. They can hide the display of the indexes, or hide specific rows or columns of data, or hide specific levels in a multiindex.

Describe the solution you'd like

Should we deprecate both of these methods and wrap their function into a generic Styler.hide(axis=.., *args)?
Seems to optimise code and probably user functionality.

This might also make it easier to add a show() method for styler similar to head and tail for dataframes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeprecateFunctionality to remove in pandasStylerconditional formatting using DataFrame.style

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions