Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Styler class should have a `pipe()` method, akin to DataFrame.pipe() #23229
Users may want to create functions that apply customized styling to a dataframe or styler object.
In order to make these functions composable, a convenient signature is
I can elaborate on the two major use cases I had in mind for this:
II. As a variant of (I), users may find themselves attempting to style many different views of data in a consistent way within a notebook. For example, users might want to present two different kinds of results (e.g. summary results and detailed results) while grouping by three different columns in their data frame, for a total of six tables being created/styled. In that case, the
Here's an example (untested code). Note that in general, there may be a series of operations performed on a data frame to get the final result frame, before any styling is applied.