BUG: Styler.hide_columns fails when not sparsifying · Issue #43464 · pandas-dev/pandas (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@attack68

Description

@attack68

Reproducible Example

pd.options.styler.sparse.columns=False

midx = MultiIndex.from_product([[1, 2],["a", "a", "b"]], names=["zero", "one"]) df = DataFrame(9, index=midx, columns=midx) styler = df.style.hide_columns((1, "a")) styler

Issue Description

Screen Shot 2021-09-08 at 20 40 49

Expected Behavior

Columns are hidden in the header row

Installed Versions

Replace this line with the output of pd.show_versions()