Skip to content

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

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

Closed
attack68 opened this issue Sep 26, 2021 · 0 comments · Fixed by #43771
Closed

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

attack68 opened this issue Sep 26, 2021 · 0 comments · Fixed by #43771
Labels
Deprecate Functionality to remove in pandas Styler conditional formatting using DataFrame.style
Milestone

Comments

@attack68
Copy link
Contributor

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?

@attack68 attack68 added Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels Sep 26, 2021
@lithomas1 lithomas1 added Deprecate Functionality to remove in pandas Styler conditional formatting using DataFrame.style and removed Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels Sep 30, 2021
@jreback jreback added this to the 1.4 milestone Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants