-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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: Transfer DataFrame.to_latex
to Styler
implementation for v1.5.0
#45382
Conversation
…_multi # Conflicts: # doc/source/whatsnew/v1.5.0.rst
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
Is this PR active? Could this be done in steps? |
this pr is active, but depends on #45288 which I have tried to get a response to. There is push back to that which I need to either argue against persuasively or accept and close and then devise a new (more complicated way) to replicate the Can this be done in stages?
These are probably the only two separate PRs . The deprecations are all or nothing because if at least one deprecated arg is implemented with Styler then all need to be considered to get the final result right. |
closed in favour of #47970 |
The latest version 1.4.0 issues a generic
FutureWarning
advising utilisingdf.style.to_latex
, instead ofDataFrame.to_latex
suggesting arguments signature might change in future.This PR makes the following changes for 1.5.0:
DataFrame._to_latex_via_styler
. This is the v.2.0 goal.col_space
which has no impact on LaTeX rendering and is not internally tested. Issues a directDeprecationWarning
.FutureWarning
but refactors the internal call so that they still pass all tests (whitespace adjusted). (Note thatheaders
as a list ofaliases
requires ENH: add kwargsrename
toStyler.format_index
for overwriting index labels #45288 as pre-requisite, which is merged into this PR)Indirect test impacts that are not just whitespace changes are very minor:
test_to_latex_decimal
etc. inherits default precision frompd.options.styler.format.precision
.test_to_latex_empty_tabular
etc. renders a valid empty LaTeX table instead of invalid LaTeX.test_to_latex_longtable_with_index
drops curly braces on the "continued on next page" comment.multirow
adds an alignment parameter which is available in newer LaTeX renderers.v1.5.0 Docstring:
v2.0 Goal Docstring: