ormats.style.Styler.set_properties.html)
    * [ 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.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.pipe  #

Styler.  pipe  (  _ func  _ , _ *  args  _ , _ **  kwargs  _ )  [ [source]
](https://github.com/pandas-
dev/pandas/blob/v2.2.2/pandas/io/formats/style.py#L3617-L3731) #

    

Apply ` func(self,  *args,  **kwargs)  ` , and return the result.

Parameters  :

    

**func** function

    

Function to apply to the Styler. Alternatively, a ` (callable,  keyword)  `
tuple where ` keyword  ` is a string indicating the keyword of ` callable  `
that expects the Styler.

***args** optional

    

Arguments passed to  func  .

****kwargs** optional

    

A dictionary of keyword arguments passed into ` func  ` .

Returns  :

    

object

    

The value returned by ` func  ` .

See also

` DataFrame.pipe  `

    

Analogous method for DataFrame.

[ ` Styler.apply  `
](pandas.io.formats.style.Styler.apply.html#pandas.io.formats.style.Styler.apply
"pandas.io.formats.style.Styler.apply")

    

Apply a CSS-styling function column-wise, row-wise, or table-wise.

Notes

Like ` DataFrame.pipe()  ` , this method can simplify the application of
several user-defined functions to a styler. Instead of writing:

    
    
    f(g(df.style.format(precision=3), arg1=a), arg2=b, arg3=c)
    

users can write:

    
    
    (df.style.format(precision=3)
       .pipe(g, arg1=a)
       .pipe(f, arg2=b, arg3=c))
    

In particular, this allows users to define functions that take a styler
object, along with other parameters, and return the styler after making
styling changes (such as calling [ ` Styler.apply()  `
](pandas.io.formats.style.Styler.apply.html#pandas.io.formats.style.Styler.apply
"pandas.io.formats.style.Styler.apply") or [ ` Styler.set_properties()  `
](pandas.io.formats.style.Styler.set_properties.html#pandas.io.formats.style.Styler.set_properties
"pandas.io.formats.style.Styler.set_properties") ).

Examples

**Common Use**

A common usage pattern is to pre-define styling operations which can be easily
applied to a generic st