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

REF: styler.to_latex siunitx changes: render {} only when needed. #43397

Merged
merged 2 commits into from
Sep 4, 2021

Conversation

attack68
Copy link
Contributor

@attack68 attack68 commented Sep 4, 2021

adds item on #41649 for better backwards compat, and this is probably slightly better anyway.

When:

  • siunitx=True columns headers are now rendered like {} & {A} & {B} \\
  • siunitx=False (default) then they are now rendered like & A & B \\

Rndering column headers with or without curly braces has no effect in the LaTeX output, except when using siunitx where they are required for it to work properly.

@jreback jreback added IO LaTeX to_latex Styler conditional formatting using DataFrame.style labels Sep 4, 2021
@jreback jreback added this to the 1.4 milestone Sep 4, 2021
@jreback jreback merged commit dfbebd7 into pandas-dev:master Sep 4, 2021
@jreback
Copy link
Contributor

jreback commented Sep 4, 2021

sure

@attack68 attack68 deleted the styler_siunitx_headers_parse branch September 4, 2021 16:43
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO LaTeX to_latex Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants