You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably a trivial question, but I can't set the column table alingment. I am using Jupyter/python and I have tried to write in a Jupyter cell the following code:
the output of the table in the Jupyter cell is correct and looks exactly like I want. When I make the quarto render the table is left aligned for all the columns.
staleIssues open for 30+ days without providing a "working" reproducible example
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Probably a trivial question, but I can't set the column table alingment. I am using Jupyter/python and I have tried to write in a Jupyter cell the following code:
first cell of my Jupyter notebook
title: "Analisi andamento"
execute:
echo: false
format:
pdf:
page-layout: article
number-sections: true
toc: true
toc-title: Indice
lot: true
geometry:
- top=25mm
- bottom=20mm
- left=20mm
- heightrounded
code-fold: true
papersize: A4
fontsize: 9pt
jupyter: python3
second cell of my notebook:
#| tbl-cap: "Tabella-1"
#| tbl-colwidths: [60,40]
#| tbl-cap-location: margin
#| table-justify: right
p_oggetti=pd.pivot_table(t_grammi, index='desc_tip_gruppo', columns='ddate', values='imp_prestito', aggfunc='sum', margins = True)
p_oggetti.drop('All', axis=1, inplace=True)
p_oggetti=p_oggetti.iloc[:, [0,3,6,-1]]
pd.options.display.float_format = '{:,.0f}'.format
p_oggetti.style.set_properties(**{'text-align': 'right'})
p_oggetti
the output of the table in the Jupyter cell is correct and looks exactly like I want. When I make the quarto render the table is left aligned for all the columns.
Where is the error?
Thanks in advance, Giorgio
Beta Was this translation helpful? Give feedback.
All reactions