Sending nicely formatted DataFrames by email from linux

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?

You probably want to use PrettyTables.jl .

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.

2 Likes

Thanks, I’ll give it a try.

Or you can do e.g.:

show(stdout, MIME("text/html"), df)
show(stdout, MIME("text/tab-separated-values"), df)
5 Likes