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

Update DataFrame.to_latex() to have more flexibility #3196

Closed
sglyon opened this issue Mar 28, 2013 · 8 comments
Closed

Update DataFrame.to_latex() to have more flexibility #3196

sglyon opened this issue Mar 28, 2013 · 8 comments
Labels
Code Style Code style, linting, code_checks IO LaTeX to_latex

Comments

@sglyon
Copy link
Contributor

sglyon commented Mar 28, 2013

The simple library matrix2latex has a lot of functionality packed into a single function. I think capturing some of those features in the current DataFrame.to_latex() method would make to_latex() much more useful.

The flexibility I am talking about is being able to do these types of things:

  • pass in arbitrary environment names
  • specify the justification of each column (as well as vertical rules between them)
  • natural handling for latex symbols like \infty
  • insert captions and labels into the tabular environment
@jreback
Copy link
Contributor

jreback commented Sep 30, 2013

@spencerlyon2 interested in integrating this?

@sglyon
Copy link
Contributor Author

sglyon commented Oct 1, 2013

@jreback, I would like to, but am going to have limited hacking time in the coming months, so I don't think I should sign up for it.

I'll post here if I do find the time to work on it a bit

@jreback jreback modified the milestones: 0.15.0, 0.14.0 Mar 11, 2014
@jreback jreback modified the milestones: 0.16.0, 0.17.0 Jan 26, 2015
@jorisvandenbossche jorisvandenbossche added IO LaTeX to_latex and removed IO HTML read_html, to_html, Styler.apply, Styler.applymap Output-Formatting __repr__ of pandas objects, to_string labels Aug 22, 2015
@kameranis
Copy link

It seems that formatters can do a lot of stuff, like bold, italics, background color, etc for each cell. Is there an interest to implement this in the coming months?

@WillAyd
Copy link
Member

WillAyd commented Jul 6, 2018

Closing due to age and ambiguity - feel free to open new issues for particular requests if you have any

@WillAyd WillAyd closed this as completed Jul 6, 2018
@WillAyd WillAyd modified the milestones: Contributions Welcome, No action Jul 6, 2018
@WillAyd WillAyd added the Code Style Code style, linting, code_checks label Jul 6, 2018
@gideonite
Copy link

I would like to be able to automatically make certain rows bold. For example, bold the largest values in each column.

Any thoughts on what the right abstraction is for this type of functionality? I'm inclined to think that the user can pass specific rows as well as a function specifying the formatting. (e.g. \bf{}). Then there can be specific options to automatically select on common criteria like max or min.

@TomAugspurger
Copy link
Contributor

TomAugspurger commented May 20, 2019 via email

@KaleabTessera
Copy link

Can we reopen this as it is still of interest? @WillAyd

@WillAyd
Copy link
Member

WillAyd commented Feb 18, 2020

@KaleabTessera if you have something specific you should like to see probably best opening a separate issue for it at this point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks IO LaTeX to_latex
Projects
None yet
Development

No branches or pull requests

8 participants