Dataframe Colors
Changing the color and style of the dataframe within Mito.
Last updated
Was this helpful?
Was this helpful?
# Formatted dataframes. Print these styling objects to see the formatted dataframe
forestfires_styler = forestfires.style\
.set_table_styles([
{'selector': 'thead', 'props': [('color', '#FFFFFF'), ('background-color', '#8F1B15')]},
{'selector': 'tbody tr:nth-child(odd)', 'props': [('color', '#494650'), ('background-color', '#F0DADA')]},
{'selector': 'tbody tr:nth-child(even)', 'props': [('color', '#494650')]},
])