# Sending nicely formatted DataFrames by email from linux

**URL:** https://discourse.julialang.org/t/sending-nicely-formatted-dataframes-by-email-from-linux/111254
**Category:** General Usage
**Tags:** dataframes
**Created:** [March 6, 2024, 5:48pm UTC](https://discourse.julialang.org/t/sending-nicely-formatted-dataframes-by-email-from-linux/111254 "2024-03-06T17:48:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jonjilla](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@jonjilla](https://discourse.julialang.org/u/jonjilla)
#### Post date: [March 6, 2024, 5:48pm UTC](https://discourse.julialang.org/t/sending-nicely-formatted-dataframes-by-email-from-linux/111254/1 "2024-03-06T17:48:37Z")

</div>

Hello

I would like to be able to send an email with a nicely formatted table in linux. from what I can see, it looks like I need to generate my own HTML to create a table out of a DataFrame.

Is there a better way to do this?

---

<div class="post-metadata">

### Author: ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)
#### Post date: [March 6, 2024, 6:01pm UTC](https://discourse.julialang.org/t/sending-nicely-formatted-dataframes-by-email-from-linux/111254/2 "2024-03-06T18:01:46Z")

</div>

You probably want to use PrettyTables.jl .

```julia
julia> using DataFrames, PrettyTables

julia> df = DataFrame(rand(100, 10), :auto);

julia> pretty_table(df; backend = Val(:html));

```

There are tons of options. Check out the docs [here](https://ronisbr.github.io/PrettyTables.jl/stable/man/html_backend/).

---

<div class="post-metadata">

### Author: ![jonjilla](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@jonjilla](https://discourse.julialang.org/u/jonjilla)
#### Post date: [March 6, 2024, 6:40pm UTC](https://discourse.julialang.org/t/sending-nicely-formatted-dataframes-by-email-from-linux/111254/3 "2024-03-06T18:40:24Z")

</div>

Thanks, I’ll give it a try.

---

<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: [March 6, 2024, 7:59pm UTC](https://discourse.julialang.org/t/sending-nicely-formatted-dataframes-by-email-from-linux/111254/4 "2024-03-06T19:59:03Z")

</div>

Or you can do e.g.:

```julia
show(stdout, MIME("text/html"), df)
show(stdout, MIME("text/tab-separated-values"), df)

```
