Closed
Description
The tracker of items needed to do before deprecating DataFrame.to_latex()
.
- acceptance of the
jinja2
requirement for LaTeX output, sinceStyler
requiresjinja2
: this is blocker. - make Styler functional for all DataFrames (i.e. including non-unique columns, indexes) (ENH: make
Styler
compatible with non-unique indexes #41269). - enhance for
longtable
keyword or other environments (ENH: addenvironment
, e.g. "longtable", toStyler.to_latex
#41866). - enhance for
caption
to allow short and long captions, and allow top/bottom caption placement. (ENH: add long and short captions toStyler.to_latex
#41659) - enhance with ability to style indexes/column headers with styles (e.g bold rows). (ENH:
Styler.apply(map)_index
made compatible withStyler.to_latex
#41993) - enhance with an escape option for LaTeX characters. (REF: type change
escape
inStyler.format
to str to allow "html" and "latex" #41619) -
enhancenot necessary.hide_columns
with.show_columns
alternative (optional) - enhance
.hide_columns
and.hide_index
to have dual function to hide the entire array, or specific items (API: makehide_columns
andhide_index
have a consistent signature and function inStyler
#41266) - make styler reactive to separate sparse columns and index separately (ENH: add
styler
option context for sparsification of columns and index separately #41512) - acceptance of removal of specific kwargs and all formatting keyword args (see below).
-
validation fornot necessarycolumn_format
to pass tests or just rely on docs/duck typing? - validation for
caption
to pass tests (CLN: add arg validation forcaption
#43368) or just remove the validation in favour of duck typing? - ability to format index with a formatter ENH:
Styler.format_index()
to display index values similarly to data-values withformat()
#43101 - separate
siunitx
for encapsulating headers in curly braces only when necessary REF:styler.to_latex
siunitx changes: render {} only when needed. #43397 - index names removal ENH: kw
names
toStyler.hide_index
#43346 - Optionally use multirow / multicol or just blank out cells. ENH:
multirow
naive implementationStyler.to_latex
part1 #43369 ENH:multicol
naive implementation. part2 #43382 - fix bug: label doesnt render if a caption is not given (table and longtable) BUG: no
label
render inStyler.to_latex
ifcaption
and"longtable"
#43399
Removed Keyword Args
col_space
: removed since Styler.to_latex()
does not necessarily produce display values of equal length, (this is a console display only arg)
sparsify
: replaced by alternative kwargs sparse_index
and sparse_columns
multicolumn
, multicolumn_format
, multirow
: replaced by alternative kwargs multirow_align
multicol_align
formatters
float_format
: replaced by the superior df.style.format(...)
args