8000 ENH: `Styler.relabel_index` for directly specifying display of index labels by attack68 · Pull Request #47864 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

ENH: Styler.relabel_index for directly specifying display of index labels #47864

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

Merged
merged 7 commits into from
Aug 2, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update pandas/io/formats/style_render.py
  • Loading branch information
attack68 authored Aug 1, 2022
commit 5921b901b340cb5416bc4fb2ea48d2e92b8f7f27
1 change: 0 additions & 1 deletion pandas/io/formats/style_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,6 @@ def relabel_index(
display_funcs_, obj = self._display_funcs_columns, self.columns
hidden_labels, hidden_lvls = self.hidden_columns, self.hide_columns_
visible_len = len(obj) - len(set(hidden_labels))
# visible_lvls = obj.nlevels - sum(hidden_lvls)
if len(labels) != visible_len:
raise ValueError(
"``labels`` must be of length equal to the number of "
Expand Down
0