-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: added optional caption and label arguments to DataFrame.to_latex() #25437
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
ENH: added optional caption and label arguments to DataFrame.to_latex() #25437
Conversation
Codecov Report
@@ Coverage Diff @@
## master #25437 +/- ##
==========================================
+ Coverage 91.74% 91.75% +<.01%
==========================================
Files 173 173
Lines 52923 52950 +27
==========================================
+ Hits 48554 48582 +28
+ Misses 4369 4368 -1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #25437 +/- ##
==========================================
- Coverage 92.04% 91.97% -0.07%
==========================================
Files 180 175 -5
Lines 50714 52409 +1695
==========================================
+ Hits 46679 48204 +1525
- Misses 4035 4205 +170
Continue to review full report at Codecov.
|
label=the_label | ||
) | ||
|
||
df = DataFrame({'a': [1, 2], 'b': ['b1', 'b2']}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see multiple tests here in this one that you've written. In the interests of modularity, let's break up into multiple test methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem but it would not be consistent with the other test methods in test_to_latex.py
; would that be an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gfyoung no problem but it would not be consistent with the other test methods in test_to_latex.py
; would that be an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could have just modified the original PR, will look soon.
cc @syxolk @toobaz @tomneep @shangyian @ScientiaEtVeritas @kdebrab if any of you would like to comment on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you merge master and update to comments
…rn a string; writing to buffer occurs in write_result() (pandas-dev#25436)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you merge master; some comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@toobaz do you have a chance to review this again? It seems pretty close to ready.
Looks like a style issue: https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=15235&view=logs&jobId=435ca956-9126-505f-566f-fff31072e2ba&taskId=e3717827-2a2f-5148-8ad4-7900d2171f6e&lineStart=14&lineEnd=15&colStart=1&colEnd=1
Can you run |
@jeschwar still working this? If so can you merge master and fix up conflicts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment on the docstring. Otherwise I think this is good to go.
Fixed the docstring validation issue. Merging on green. |
Thanks @jeschwar! |
…() (pandas-dev#25437) * ENH: added optional caption and label support to DataFrame.to_latex() (pandas-dev#25436)
…() (pandas-dev#25437) * ENH: added optional caption and label support to DataFrame.to_latex() (pandas-dev#25436)
git diff upstream/master -u -- "*.py" | flake8 --diff