8000 WARN: Add FutureWarning for `DataFrame.to_latex` by attack68 · Pull Request #44411 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

WARN: Add FutureWarning for DataFrame.to_latex #44411

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

Merged
merged 13 commits into from
Nov 24, 2021
Prev Previous commit
Next Next commit
fix doc warnings
  • Loading branch information
attack68 committed Nov 12, 2021
commit 1119a27b6d83279952fbbc98292d2bdabe7482b6
2 changes: 2 additions & 0 deletions doc/source/whatsnew/v1.2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ and a short caption (:issue:`36267`).
The keyword ``position`` has been added to set the position.

.. ipython:: python
:okwarning:

data = pd.DataFrame({'a': [1, 2], 'b': [3, 4]})
table = data.to_latex(position='ht')
Expand All @@ -161,6 +162,7 @@ one can optionally provide a tuple ``(full_caption, short_caption)``
to add a short caption macro.

.. ipython:: python
:okwarning:

data = pd.DataFrame({'a': [1, 2], 'b': [3, 4]})
table = data.to_latex(caption=('the full long caption', 'short caption'))
Expand Down
0