Skip to content

BUG: styler render trimming does not work with hide_columns #43704

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
3 tasks done
attack68 opened this issue Sep 22, 2021 · 5 comments · Fixed by #44272
Closed
3 tasks done

BUG: styler render trimming does not work with hide_columns #43704

attack68 opened this issue Sep 22, 2021 · 5 comments · Fixed by #44272
Assignees
Labels
Bug Styler conditional formatting using DataFrame.style

Comments

@attack68
Copy link
Contributor

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the master branch of pandas.

Reproducible Example

pd.options.styler.render.max_columns = 2
df = DataFrame(np.random.randn(1,5))
df.style.hide_columns(df.columns[:2])

Issue Description

The render is empty since the first two columns are looped but hidden, the loop index does not progress passed 2.

This is a similar issue to #43703 but recorded separately since requires different fixes.

Expected Behavior

Render columns 3 and 4 with a trimmed column

Installed Versions

master

@attack68 attack68 added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Sep 22, 2021
@attack68 attack68 changed the title BUG: styler render trimming does not work with max_columns BUG: styler render trimming does not work with hide_columns Sep 22, 2021
@pedr0luiz
Copy link

take

@VFermat
Copy link

VFermat commented Sep 23, 2021

take

@VFermat
Copy link

VFermat commented Sep 23, 2021

Hi!
I'll be working alongside @pedr0luiz on this issue!

@gabrielzezze
Copy link

take

@attack68
Copy link
Contributor Author

anyone looking at this should wait until #43649 is merged, since the code relevant to this issue will change significantly, and you will struggle to merge.

@attack68 attack68 added Styler conditional formatting using DataFrame.style and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants