format_row_where
The format_row_where method applies color formatting to rows of the source table, based on user-specified conditions.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| cond | str | The condition expression. |
| formula | str | Formulas to compute formats for columns or rows in the table; e.g., For decimal formats, the result must be a string, and the formula must be wrapped in the special internal
function |
Returns
A new table that applies the specified formatting to the source table.
Examples
In the following example, we use format_row_where to paint the table's 4th row red.