Conditional formatting changes how data appears when it meets a rule. In a pandas DataFrame, the style property can apply presentation changes without changing the underlying values. section 7.5.3 section 7.8
Highlighting a total row
A drilldown table adds a row labeled “Total.” A styling function examines each row and returns a background-color rule for every cell when the first cell contains “Total”; other rows receive no style.
Formatting can be composed with value formatting: first convert metric values according to their configured types, then apply the conditional row style before displaying the table.
