# Dataframe Colors

{% hint style="info" %} <img src="/files/4VOWezxnwO2wM4J3bVdr" alt="" data-size="line"> This is a [Mito Pro](https://www.trymito.io/plans) feature. [Upgrade](https://www.trymito.io/plans) to make your dataframes presentation ready. <img src="/files/4VOWezxnwO2wM4J3bVdr" alt="" data-size="line">&#x20;
{% endhint %}

Setting dataframe colors allows you to change the colors of the displayed dataframes headers and rows. Dataframe formatting is the easiest way to make your dataframes presentable to colleages, for example if you are copying them into an email or slide deck.

### Setting a Dataframe Format

1. Click **Format** and then **Set dataframe colors.**
2. In the **Color Dataframe** taskpane that opens, select a **Suggested Style** to change the color of your dataframe.
3. You can also manually configure the **Column Headers, Rows,** or **Dataframe Border** by expanding these sections.

<figure><img src="/files/mOIYJgn4PWhFKLs6kSpu" alt=""><figcaption></figcaption></figure>

### The Generated Styling Code

When you style your dataframe, Mito will generate code that styles this dataframe in your notebook. This code will look something like this:

```python
# 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')]},
])
```

To view your formatted dataframe in your notebook, simply display the forestfires\_styler object. You can then copy this formatted dataframe anywhere you please.&#x20;

<figure><img src="/files/p9E0tb8BRrsGCHsadwSG" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.trymito.io/how-to/formatting/dataframe-colors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
