Hi,
if I use set_table_styles

```{python} #| echo: false #| warning: false import pandas as pd df = pd.DataFrame({'text': ['foo', 'bar'],'number': [1, 2]}) dfStyler = df.style.set_properties(**{'text-align': 'center'}) dfStyler.set_table_styles([dict(selector='th', props=[('text-align', 'center')])]) ```

I have in jupyter notebook the style applied

image

But how to have in HTML output in example right align only for the number column?

If I set it in this way:

df.style.set_properties(subset=["number"], **{'text-align': 'right'})

it works in the notebook, but in quarto (rendered via pandoc) I have number column to aligned to the left

image

Is there a way to style only one field of a pandas dataframe?

Thank you

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/41d93efd-6895-4ce9-b857-a97b00ff2fb5n%40googlegroups.com.