* [ pandas.io.formats.style.Styler.set_uuid ](pandas.io.formats.style.Styler.set_uuid.html)
    * [ pandas.io.formats.style.Styler.clear ](pandas.io.formats.style.Styler.clear.html)
    * [ pandas.io.formats.style.Styler.pipe ](pandas.io.formats.style.Styler.pipe.html)
    * [ pandas.io.formats.style.Styler.highlight_null ](pandas.io.formats.style.Styler.highlight_null.html)
    * [ pandas.io.formats.style.Styler.highlight_max ](pandas.io.formats.style.Styler.highlight_max.html)
    * [ pandas.io.formats.style.Styler.highlight_min ](pandas.io.formats.style.Styler.highlight_min.html)
    * [ pandas.io.formats.style.Styler.highlight_between ](pandas.io.formats.style.Styler.highlight_between.html)
    * [ pandas.io.formats.style.Styler.highlight_quantile ](pandas.io.formats.style.Styler.highlight_quantile.html)
    * [ pandas.io.formats.style.Styler.background_gradient ](pandas.io.formats.style.Styler.background_gradient.html)
    * [ pandas.io.formats.style.Styler.text_gradient ](pandas.io.formats.style.Styler.text_gradient.html)
    * [ pandas.io.formats.style.Styler.bar ](pandas.io.formats.style.Styler.bar.html)
    * [ pandas.io.formats.style.Styler.to_html ](pandas.io.formats.style.Styler.to_html.html)
    * [ pandas.io.formats.style.Styler.to_latex ](pandas.io.formats.style.Styler.to_latex.html)
    * [ pandas.io.formats.style.Styler.to_excel ](pandas.io.formats.style.Styler.to_excel.html)
    * [ pandas.io.formats.style.Styler.to_string ](pandas.io.formats.style.Styler.to_string.html)
    * [ pandas.io.formats.style.Styler.export ](pandas.io.formats.style.Styler.export.html)
    * [ pandas.io.formats.style.Styler.use ](pandas.io.formats.style.Styler.use.html)
  * [ Plotting ](../plotting.html)
  * [ Options and settings ](../options.html)
  * [ Extensions ](../extensions.html)
  * [ Testing ](../testing.html)
  * [ Missing values ](../missing_value.html)

  * [ __ ](../../index.html)
  * [ API reference ](../index.html)
  * [ Style ](../style.html)
  * pandas.io.fo... 

#  pandas.io.formats.style.Styler.hide  #

Styler.  hide  (  _ subset  =  None  _ , _ axis  =  0  _ , _ level  =  None  _
, _ names  =  False  _ )  [ [source]  ](https://github.com/pandas-
dev/pandas/blob/v2.2.2/pandas/io/formats/style.py#L2628-L2817) #

    

Hide the entire index / column headers, or specific rows / columns from
display.

New in version 1.4.0.

Parameters  :

    

**subset** label, array-like, IndexSlice, optional

    

A valid 1d input or single key along the axis within  DataFrame.loc[<subset>,
:]  or  DataFrame.loc[:, <subset>]  depending upon ` axis  ` , to limit ` data
` to select hidden rows / columns.

**axis** {âindexâ, 0, âcolumnsâ, 1}

    

Apply to the index or columns.

**level** int, str, list

    

The level(s) to hide in a MultiIndex if hiding the entire index / column
headers. Cannot be used simultaneously with ` subset  ` .

**names** bool

    

Whether to hide the level name(s) of the index / columns headers in the case
it (or at least one the levels) remains visible.

Returns  :

    

Styler

    

Notes

Warning

This method only works with the output methods ` to_html  ` , ` to_string  `
and ` to_latex  ` .

Other output methods, including ` to_excel  ` , ignore this hiding method and
will display all data.

This method has multiple functionality depending upon the combination of the `
subset  ` , ` level  ` and ` names  ` arguments (see examples). The ` axis  `
argument is used only to control whether the method is applied to row or
column headers:

Argument combinations  #  ` subset  ` |  ` level  ` |  ` names  ` |  Effect   
---|---|---|---  
None  |  None  |  False  |  The axis-Index is hidden entirely.   
None  |  None  |  True  |  Only the axis-Index names are hidden.   
None  |  Int, Str, List  |  False  |  Specified axis-MultiIndex levels are hidden entirely.   
None  |  Int, Str, List  |  True  |  Specified axis-MultiIndex levels are hidden entirely and the names of remaining axis-MultiIndex lev