I have a style_conditional list in Dash_Datatable
my_value_1 = 'Fruits'
style_data_conditional =
# Colour red when values are less
[
{
'if': {
'column_id': str(column),
'filter_query': f'{{{my_value_1}}} eq "Apples" && {{{column}}} > {{{benchmark}}} +10 or {{{column}}} < {{{benchmark}}} +10 ' },
'backgroundColor': 'red',
'color': 'white'
} for column in data.iloc[:,1:].columns
]
If I remove the +10 part in the inequalities then it’s working but the logic of the problem demands that there be +10 in both inequalities. benchmark is the value of a dropdown the options being the columns after the first one as evident from the loop I’ll require help with this f string.