BUG: Styler.hide_columns
fails when not sparsifying · Issue #43464 · pandas-dev/pandas (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
- 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.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
Expected Behavior
Columns are hidden in the header row
Installed Versions
Replace this line with the output of pd.show_versions()