Skip to content

BUG: styler render trimming rows does not work with hide_index #43703

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 · 0 comments · Fixed by #43649
Closed
3 tasks done

BUG: styler render trimming rows does not work with hide_index #43703

attack68 opened this issue Sep 22, 2021 · 0 comments · Fixed by #43649
Labels
Bug Styler conditional formatting using DataFrame.style
Milestone

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_rows = 2
df = DataFrame(np.random.randn(5,1))
df.style.hide_index(df.index[:2])

Issue Description

This does not render any rows since it loops through the first 2 rows, which are hidden, but then doesn't progress the loop passed index 2.

Expected Behavior

Hidden rows should be deducted from the row count. The dataframe should show rows 3 and 4 above.

Installed Versions

master

@attack68 attack68 added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Sep 22, 2021
@jreback jreback added this to the 1.4 milestone Sep 23, 2021
@jreback jreback added Styler conditional formatting using DataFrame.style and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Sep 23, 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.

2 participants