Skip to content

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

Closed
@attack68

Description

@attack68

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugStylerconditional formatting using DataFrame.style

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions