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

Comparison with RStudio's gt package #173

Open
3 of 8 tasks
greimel opened this issue Jul 26, 2022 · 8 comments
Open
3 of 8 tasks

Comparison with RStudio's gt package #173

greimel opened this issue Jul 26, 2022 · 8 comments

Comments

@greimel
Copy link

greimel commented Jul 26, 2022

There's a pretty recent R package by RStudio to create pretty tables.

It seems to be pretty feature rich and well thought through. They introduce their own names for table parts. Here's a screenshot from the package README.

image

Most of the elements are already available in, or have been asked for PrettyTables.

Introducing row groups might be interesting for printing GroupedDataFrames (cc @bkamins). Here's a screen shot from the RStudio blog

image

@bkamins
Copy link

bkamins commented Jul 26, 2022

This will be conveniently done when we add metadata to DataAPI.jl (and DataFrames.jl)

@ronisbr
Copy link
Owner

ronisbr commented Aug 1, 2022

Thank you very much for this information!

By the way, I will change what I called row name to row label, which seems much better :D

Everything seems doable to implement except the spanner column label. It is somewhat difficult to do in text backend.

@jariji
Copy link
Contributor

jariji commented Dec 22, 2022

This diagram is missing support for hierarchical row labels like Pandas has

image

@bkamins
Copy link

bkamins commented Dec 22, 2022

I understand this is handled in the diagram above by groups.

@Dale-Black
Copy link

I am super keen on this gt Table equivalent in Julia. Based on this issue, it looks like this might already be possible with some elbow grease using PrettyTables and DataFrames? Do you know if this is true, and if so, are there any links that might help me get started?

@ronisbr
Copy link
Owner

ronisbr commented Dec 23, 2022

This diagram is missing support for hierarchical row labels like Pandas has

I also agree with @bkamins that this feature is equivalent to row group.

I am super keen on this gt Table equivalent in Julia. Based on this issue, it looks like this might already be possible with some elbow grease using PrettyTables and DataFrames? Do you know if this is true, and if so, are there any links that might help me get started?

You can have some of the features using PrettyTables.jl in text, HTML, and LaTeX. Is there any specific use case you have in mind?

@Dale-Black
Copy link

I have a bunch of small dataframes that I would like to group into a formatted table like the gt table diagram shows

@jariji
Copy link
Contributor

jariji commented Apr 4, 2024

RStudio has a new blog post on the design of gt: https://posit-dev.github.io/great-tables/blog/design-philosophy/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants