Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blog: add blog post promoting the mask= parameter in loc.body() #584

Merged
merged 7 commits into from
Jan 27, 2025
Merged
Prev Previous commit
Use "styling" to replace "formatting" to avoid ambiguity
  • Loading branch information
jrycw committed Jan 27, 2025
commit f65ecffc101ee01774930264a21cf110cc830e93
2 changes: 1 addition & 1 deletion docs/blog/locbody-mask/index.qmd
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ format:
code-summary: "Show the Code"
---

In Great Tables `0.16.0`, we introduced the `mask=` parameter in `loc.body()`, enabling users to apply conditional formatting to rows on a per-column basis more efficiently when working with a Polars DataFrame. This post will demonstrate how it works and compare it with the "old-fashioned" approach:
In Great Tables `0.16.0`, we introduced the `mask=` parameter in `loc.body()`, enabling users to apply conditional styling to rows on a per-column basis more efficiently when working with a Polars DataFrame. This post will demonstrate how it works and compare it with the "old-fashioned" approach:

* **Leveraging the `mask=` parameter in `loc.body()`:** Use Polars expressions for streamlined styling.
* **Utilizing the `locations=` parameter in `GT.tab_style()`:** Pass a list of `loc.body()` objects.
Loading