# Conditional Formatting in Pluto/Dataframes

**URL:** <https://discourse.julialang.org/t/conditional-formatting-in-pluto-dataframes/91113>\
**Category:** Pluto\
**Tags:** dataframes\
**Created:** [December 1, 2022, 7:51pm UTC](https://discourse.julialang.org/t/conditional-formatting-in-pluto-dataframes/91113 "2022-12-01T19:51:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lgmendes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lgmendes/32/34577_2.png) [@lgmendes](https://discourse.julialang.org/u/lgmendes)\
**Post date:** [December 1, 2022, 7:51pm UTC](https://discourse.julialang.org/t/conditional-formatting-in-pluto-dataframes/91113/1 "2022-12-01T19:51:56Z")

</div>

Is it possible to apply conditional formatting to dataframes on Pluto? Similar to what I possible with Pandas (Python) [https://pandas.pydata.org/docs/user\_guide/style.html](https://pandas.pydata.org/docs/user_guide/style.html) . In particular, I want to highlight some cells (based on rules). PrettyTable.jl [PrettyTables.jl](https://ronisbr.github.io/PrettyTables.jl/stable/) allows the customization of the display style but it seems not to be working in Pluto.

---

<div class="post-metadata">

**Author:** ![bkamins](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bkamins/32/208538_2.png) [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Post date:** [December 1, 2022, 8:10pm UTC](https://discourse.julialang.org/t/conditional-formatting-in-pluto-dataframes/91113/2 "2022-12-01T20:10:05Z")

</div>

Pluto by default uses its own rendering mechanism. But I think you can just use `pretty_table` directly to get what you want.

CC @fonsp

---

<div class="post-metadata">

**Author:** ![lgmendes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lgmendes/32/34577_2.png) [@lgmendes](https://discourse.julialang.org/u/lgmendes)\
**Post date:** [December 1, 2022, 8:38pm UTC](https://discourse.julialang.org/t/conditional-formatting-in-pluto-dataframes/91113/3 "2022-12-01T20:38:15Z")

</div>

Thanks!  
I just figured out that for running the HTML example in PrettyTables docs ([https://ronisbr.github.io/PrettyTables.jl/stable/man/html\_backend/](https://ronisbr.github.io/PrettyTables.jl/stable/man/html_backend/)) in Pluto I need only to add the keyword HTML as the first argument, i.e.,

> pretty\_table(HTML,data; backend = Val(:html), header = header, highlighters = (hl\_e, hl\_p, hl\_v), standalone = true)
