
I created a bokeh DataTable from a pandas DataFrame using the following code:
output_file("data_table.html")
source = ColumnDataSource(df)
columns = [TableColumn(field=col, title=col) for col in df]
data_table = DataTable(source=source, columns=columns, reorderable=False, index_width=0, sizing_mode='scale_width', height=800)
The DataTable contains multiple columns. Some of the columns contain data in a “string” format.
Other columns contain integers. I would like to have the columns that contain integers display positive amounts in black font and negative amounts in red font. How can I make this happen without needing to specify each column in my code above?
Overall, I am trying to obtain a similar look to Excel’s conditional formatting.
Thanks for your help!

