# \[ANN\] PrettyTables.jl - Print formatted tables in Julia

**URL:** <https://discourse.julialang.org/t/ann-prettytables-jl-print-formatted-tables-in-julia/19550>\
**Category:** Package Announcements\
**Created:** [January 12, 2019, 3:49am UTC](https://discourse.julialang.org/t/ann-prettytables-jl-print-formatted-tables-in-julia/19550 "2019-01-12T03:49:21Z")\
**Posts on this page:** 5\
**Page:** 5

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [December 7, 2019, 11:06pm UTC](https://discourse.julialang.org/t/ann-prettytables-jl-print-formatted-tables-in-julia/19550/81 "2019-12-07T23:06:13Z")

</div>

Finally we have a initial version to work with.

@pdeffebach I will appreciate if you can provide some feedback 🙂

> [@\[ANN\] PrettyTables.jl now has LaTeX backend](https://discourse.julialang.org/t/ann-prettytables-jl-now-has-latex-backend/31990):
>
> Hi! After a while, I finally added an initial version o LaTeX backend to [PrettyTables.jl](https://github.com/ronisbr/PrettyTables.jl). It is not published yet. Thus you will have to use dev. I want some feedback about it. Unfortunately there is not a documentation yet, but you can see the functions pretty\_tables and \_pt\_latex to see. I also added a nice feature to automatically add tables to files. For example, let’s say you have this LaTeX file: \documentclass{article} \usepackage{xcolor} \begin{document} The table~\ref{tab:table} i…

---

<div class="post-metadata">

**Author:** ![mcreel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mcreel/32/30088_2.png) [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Post date:** [December 10, 2019, 10:56am UTC](https://discourse.julialang.org/t/ann-prettytables-jl-print-formatted-tables-in-julia/19550/82 "2019-12-10T10:56:19Z")

</div>

I have used PrettyTables in my [econometrics functions](https://github.com/mcreel/Econometrics), which gives a nice standardized appearance, and I love the highlighters. At the moment, I’m highlighting p-values, but I may find more uses. 👍

 ![image](https://global.discourse-cdn.com/julialang/original/3X/a/4/a42d34b8f9f17d7cd3e8f6a2d104a277c0c6e123.png)

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [December 10, 2019, 11:05am UTC](https://discourse.julialang.org/t/ann-prettytables-jl-print-formatted-tables-in-julia/19550/83 "2019-12-10T11:05:41Z")

</div>

This is awesome! I am glad it is being useful 🙂

---

<div class="post-metadata">

**Author:** ![JuergenD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juergend/32/18970_2.png) [@JuergenD](https://discourse.julialang.org/u/JuergenD)\
**Post date:** [November 9, 2020, 10:11am UTC](https://discourse.julialang.org/t/ann-prettytables-jl-print-formatted-tables-in-julia/19550/84 "2020-11-09T10:11:23Z")

</div>

I’d like to format integers to be better readable, e.g. 1,234,567 instead of 1234567. Is that somehow possible with PrettyTables?

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [November 9, 2020, 11:13am UTC](https://discourse.julialang.org/t/ann-prettytables-jl-print-formatted-tables-in-julia/19550/85 "2020-11-09T11:13:21Z")

</div>

Yes! You can use the formatters with the correct configuration (see [Formatting.jl](https://github.com/JuliaIO/Formatting.jl)):

```julia
julia> data = rand(10,4)*1_000_000;

julia> pretty_table(data, formatters = ft_printf("%'f"))
┌────────────────┬────────────────┬────────────────┬────────────────┐
│ Col. 1 │ Col. 2 │ Col. 3 │ Col. 4 │
├────────────────┼────────────────┼────────────────┼────────────────┤
│ 55,663.471352 │ 565,113.348576 │ 228,213.209548 │ 596,933.831667 │
│ 598,850.511318 │ 918,248.720496 │ 808,481.418316 │ 754,614.846689 │
│ 640,977.492383 │ 626,533.558765 │ 980,038.274199 │ 610,184.850254 │
│ 287,743.186246 │ 76,687.541499 │ 161,030.570764 │ 240,375.325876 │
│ 857,151.015773 │ 11,965.878824 │ 981,600.033788 │ 477,896.870375 │
│ 221,924.099382 │ 547,931.680008 │ 747,265.226244 │ 98,563.283496 │
│ 248,303.297361 │ 358,127.611747 │ 823,934.355781 │ 709,068.229827 │
│ 879,280.015089 │ 916,188.034335 │ 750,692.341263 │ 635,150.198794 │
│ 170,127.288886 │ 74,977.650040 │ 889,831.593324 │ 250,795.355161 │
│ 304,763.211156 │ 746,721.721851 │ 220,722.897752 │ 143,547.720656 │
└────────────────┴────────────────┴────────────────┴────────────────┘

```

[Previous page](https://discourse.julialang.org/t/ann-prettytables-jl-print-formatted-tables-in-julia/19550.md?page=4)
