The gt_add_divider() function takes an existing GT object and adds dividers to the specified columns. Dividers can be applied to one or more sides of the cells, with customizable color, style, and weight. Optionally, dividers can also be applied to column labels.
The sides of the cells where dividers should be added. Options include "right", "left", "top", "bottom", or "all". A list of sides can also be provided to apply dividers to multiple sides.
The style of the dividers. Options include "solid", "dashed", "dotted", "hidden", and "double".
weight:int=2
The thickness of the dividers in pixels.
include_labels:bool=True
Whether to include dividers in the column labels. If True, dividers will be applied to both the body and the column labels. If False, dividers will only be applied to the body.
Returns
:GT
A GT object with dividers added to the specified columns.