Skip to content

ENH: Enable short_caption in to_latex #35668

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 39 commits into from
Oct 17, 2020
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
13d07ae
Extract helper method for caption & label macro
ivanovmg Aug 11, 2020
8912c81
Enable short_caption for df.to_latex
ivanovmg Aug 11, 2020
3f71b46
Replace unwanted pytest.warns with tm.assert...
ivanovmg Aug 11, 2020
22d2ca4
Fix missing f-string placeholder
ivanovmg Aug 11, 2020
01152c1
Apply black
ivanovmg Aug 11, 2020
6adb05c
Optionally unpack caption=(caption, short_caption)
ivanovmg Aug 18, 2020
4725d73
Merge branch 'master' into feature/latex-shortcaption
ivanovmg Aug 18, 2020
a7b64c0
Add edge cases for caption testing
ivanovmg Aug 18, 2020
a2216a1
Pass through black
ivanovmg Aug 18, 2020
6c93de4
Remove typing and short_caption from to_latex
ivanovmg Aug 19, 2020
45de6eb
Merge branch 'master' into feature/latex-shortcaption
ivanovmg Sep 7, 2020
e70aafa
DOC: add parameters to LatexFormatter docstring
ivanovmg Sep 7, 2020
a0e3f53
TYP: remove type ignore for column_format
ivanovmg Sep 8, 2020
6725ca8
REF: move short caption parsing to LatexFormatter
ivanovmg Sep 8, 2020
8466421
DOC: add whatsnew for position and short caption
ivanovmg Sep 10, 2020
0cc0664
DOC: add issue number for short caption
ivanovmg Sep 10, 2020
c60a705
Merge branch 'master' into feature/latex-shortcaption
ivanovmg Sep 10, 2020
27891a3
CLN: update error message
ivanovmg Sep 13, 2020
e43b52f
TST: ensure that error message is tested
ivanovmg Sep 13, 2020
fbea9eb
TST: add tests for bad tuples
ivanovmg Sep 13, 2020
29b37e2
Merge branch 'master' into feature/latex-shortcaption
ivanovmg Sep 13, 2020
ed0132c
DOC: add/update versionadded, versionchanged tags
ivanovmg Sep 13, 2020
ed4b705
TST: add assertions in caption setter to help mypy
ivanovmg Sep 13, 2020
3453d43
DOC: add reason for caption type ignore
ivanovmg Sep 13, 2020
16884bc
DOC: add reason for strrows arg-type ignore
ivanovmg Sep 13, 2020
6fd52ca
DOC: add missing empty line before versionadded
ivanovmg Sep 13, 2020
5acfc44
Merge branch 'master' into feature/latex-shortcaption
ivanovmg Sep 14, 2020
ae1babe
REF: replace caption setter with initialize method
ivanovmg Sep 22, 2020
ddec116
Merge branch 'master' into feature/latex-shortcaption
ivanovmg Sep 22, 2020
15227b3
TST: align longtable test with the recent changes
ivanovmg Sep 22, 2020
336bfb5
Merge branch 'master' into feature/latex-shortcaption
ivanovmg Sep 23, 2020
b30d2d7
TST: add for list [full_caption, short_caption]
ivanovmg Sep 23, 2020
f1781f6
Merge branch 'master' into feature/latex-shortcaption
ivanovmg Sep 25, 2020
f4b18ff
Merge branch 'master' into feature/latex-shortcaption
ivanovmg Sep 30, 2020
a18c85d
Merge branch 'master' into feature/latex-shortcaption
ivanovmg Oct 7, 2020
e957c37
REF: use string concat for caption macro
ivanovmg Oct 7, 2020
09d9c85
REF: move method to module level
ivanovmg Oct 7, 2020
559ca2a
REF: drop property _short_caption_macro
ivanovmg Oct 7, 2020
0fd73e8
Merge branch 'master' into feature/latex-shortcaption
ivanovmg Oct 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replace unwanted pytest.warns with tm.assert...
  • Loading branch information
ivanovmg committed Aug 11, 2020
commit 3f71b467da92ce9e996a221c3df6004c15d2dd37
2 changes: 1 addition & 1 deletion pandas/tests/io/formats/test_to_latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ def test_to_latex_caption_label(self):

# test when the short_caption is provided but caption is not
warn_msg = 'short_caption is provided, but caption is not provided'
with pytest.warns(UserWarning, match=warn_msg):
with tm.assert_produces_warning(UserWarning):
result_cl = df.to_latex(
short_caption=the_short_caption,
label=the_label,
Expand Down