[ 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.concat  #

Styler.  concat  (  _ other  _ )  [ [source]  ](https://github.com/pandas-
dev/pandas/blob/v2.2.2/pandas/io/formats/style.py#L297-L397) #

    

Append another Styler to combine the output into a single table.

New in version 1.5.0.

Parameters  :

    

**other** Styler

    

The other Styler object which has already been styled and formatted. The data
for this Styler must have the same columns as the original, and the number of
index levels must also be the same to render correctly.

Returns  :

    

Styler

    

Notes

The purpose of this method is to extend existing styled dataframes with other
metrics that may be useful but may not conform to the originalâs structure.
For example adding a sub total row, or displaying metrics such as means,
variance or counts.

Styles that are applied using the ` apply  ` , ` map  ` , ` apply_index  ` and
` map_index  ` , and formatting applied with ` format  ` and ` format_index  `
will be preserved.

Warning

Only the output methods ` to_html  ` , ` to_string  ` and ` to_latex  `
currently work with concatenated Stylers.

Other output methods, including ` to_excel  ` , **do not** work with
concatenated Stylers.

The following should be noted:

>   * ` table_styles  ` , ` table_attributes  ` , ` caption  ` and ` uuid  `
> are all inherited from the original Styler and not ` other  ` .
>
>   * hidden columns and hidden index levels will be inherited from the
> original Styler
>
>   * ` css  ` will be inherited from the original Styler, and the value of
> keys ` data  ` , ` row_heading  ` and ` row  ` will be prepended with `
> foot0_  ` . If more concats are chained, their styles will be prepended with
> ` foot1_  ` , ââfoot_2ââ, etc., and if a concatenated style have
> another concatanated style, the second style will be prepended with `
> foot{parent}_foot{child}_  ` .
>
>

A common use case is to concatenate user defined functions with `
DataFrame.agg  ` or with