Skip to content

Conversation

@attack68
Copy link
Contributor

@attack68 attack68 commented Jun 30, 2021

@attack68 attack68 added Bug Styler conditional formatting using DataFrame.style IO LaTeX to_latex labels Jun 30, 2021
@simonjayhawkins
Copy link
Member

[ ] whatsnew entry (probably for 1.3.1)

you can put in 1.3.0 for review purposes and move later. (after #42312)

although there seems to be conda-incubator/setup-miniconda@v2 issues today which could slow down the ability to release

@attack68
Copy link
Contributor Author

[ ] whatsnew entry (probably for 1.3.1)

you can put in 1.3.0 for review purposes and move later. (after #42312)

although there seems to be conda-incubator/setup-miniconda@v2 issues today which could slow down the ability to release

if thats the case then not technically necessary for 1.3.0 (it fixes a feature that was added for 1.3.0)

@simonjayhawkins simonjayhawkins added this to the 1.3 milestone Jun 30, 2021
@simonjayhawkins
Copy link
Member

@jreback ok for 1.3 (we have issues with #42304 that's blocking release)

@jreback jreback merged commit 29094b6 into pandas-dev:master Jun 30, 2021
@jreback
Copy link
Contributor

jreback commented Jun 30, 2021

@meeseeksdev backport 1.3.x

@jreback
Copy link
Contributor

jreback commented Jun 30, 2021

thanks @attack68

@lumberbot-app
Copy link

lumberbot-app bot commented Jun 30, 2021

Something went wrong ... Please have a look at my logs.

jreback pushed a commit that referenced this pull request Jun 30, 2021
@attack68 attack68 deleted the bug_latex_table_styles_overwrite branch June 30, 2021 18:48
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
@jreback
Copy link
Contributor

jreback commented Jul 3, 2021

@attack68

shouldn't the following render the output as Latex in a notebook?

df = pd.DataFrame([[1, 2.2, "dogs"], [3, 4.4, "cats"], [2, 6.6, "cows"]], index=["ix1", "ix2", "ix3"], columns=["Integers", "Floats", "Strings"]) s = df.style.highlight_max( props='cellcolor:[HTML]{FFFF00}; color:{red};' 'textit:--rwrap; textbf:--rwrap;' ) from IPython.display import display, Latex display(Latex(s.to_latex())) 
@attack68
Copy link
Contributor Author

@jreback I don't use LaTeX much in a notebook but I believe Jupyter uses MathJax to render and Mathjax does not support all LaTeX environements including tabular, so this just displays as text in a box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug IO LaTeX to_latex Styler conditional formatting using DataFrame.style

3 participants