You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we can call the methods of GT multiple times, such as GT.tab_style().tab_style()..., which is a common pattern. However, this approach makes it difficult to programmatically call the method.
In this example, I want to highlight the max value of the land_area_km2 and density_2021 columns with different styles. This requires invoking GT.tab_style() twice.
However, if we had GT.pipe(), we could encapsulate the styling logic in a function and pass it to GT.pipe(). Here is a draft concept for the idea:
With the help of GT.pipe(), we can even pass multiple functions to it. I'm curious whether this is a good idea or if there is an existing pattern that I might have overlooked to achieve this goal.
The text was updated successfully, but these errors were encountered:
Currently, we can call the methods of
GT
multiple times, such asGT.tab_style().tab_style()...
, which is a common pattern. However, this approach makes it difficult to programmatically call the method.Here is an example to illustrate my question:
In this example, I want to highlight the max value of the
land_area_km2
anddensity_2021
columns with different styles. This requires invokingGT.tab_style()
twice.However, if we had
GT.pipe()
, we could encapsulate the styling logic in a function and pass it toGT.pipe()
. Here is a draft concept for the idea:With the help of
GT.pipe()
, we can even pass multiple functions to it. I'm curious whether this is a good idea or if there is an existing pattern that I might have overlooked to achieve this goal.The text was updated successfully, but these errors were encountered: