Conditionally Formatting cells containing -

Hi all,

I’m using a dash table that is formatted as text. Most of the information in the table is string numbers. I would like to conditionally format the cells such that if there is a ‘-’ present, the text is red. I’m trying to apply this to all columns.

I don’t want to create a new table for the numeric section, as it would require splitting one table up into 3, ruining the ability to align the tables.

Here is the code I’m trying to use:

style_cell_conditional=[{‘if’: {
‘column_id’: str(x),
‘filter_query’: ‘{} eq “-”’.format(x)},
‘color’: ‘red’,
} for x in range(3,data.shape[1])]