Skip to content

BUG: Validate the justify parameter in to_html #17766

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 4 commits into from
Oct 3, 2017

Conversation

gfyoung
Copy link
Member

@gfyoung gfyoung commented Oct 3, 2017

@gfyoung gfyoung added Bug IO HTML read_html, to_html, Styler.apply, Styler.applymap labels Oct 3, 2017
@gfyoung gfyoung added this to the 0.21.0 milestone Oct 3, 2017
@gfyoung gfyoung requested a review from TomAugspurger October 3, 2017 16:32
@pep8speaks
Copy link

pep8speaks commented Oct 3, 2017

Hello @gfyoung! Thanks for updating the PR.

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated on October 03, 2017 at 18:20 Hours UTC

@@ -778,6 +778,7 @@ I/O
- Bug in :func:`read_html` where import check fails when run in multiple threads (:issue:`16928`)
- Bug in :func:`read_csv` where automatic delimiter detection caused a ``TypeError`` to be thrown when a bad line was encountered rather than the correct error message (:issue:`13374`)
- Bug in ``DataFrame.to_html()`` with ``notebook=True`` where DataFrames with named indices or non-MultiIndex indices had undesired horizontal or vertical alignment for column or row labels, respectively (:issue:`16792`)
- Bug in ``DataFrame.to_html()`` in which there was no validation of the ``justify`` parameter (:issue:`17527`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be preferable to use :meth:`DataFrame.to_html` to provide a link? Possibly on the line above too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely! Thanks for pointing that out.

@jreback
Copy link
Contributor

jreback commented Oct 3, 2017

lgtm. merge on green.

@codecov
Copy link

codecov bot commented Oct 3, 2017

Codecov Report

Merging #17766 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17766      +/-   ##
==========================================
+ Coverage   91.23%   91.24%   +<.01%     
==========================================
  Files         163      163              
  Lines       49869    49872       +3     
==========================================
+ Hits        45499    45504       +5     
+ Misses       4370     4368       -2
Flag Coverage Δ
#multiple 89.04% <100%> (+0.02%) ⬆️
#single 40.24% <33.33%> (-0.07%) ⬇️
Impacted Files Coverage Δ
pandas/core/frame.py 97.73% <100%> (-0.1%) ⬇️
pandas/io/formats/format.py 96.07% <100%> (ø) ⬆️
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/indexes/datetimes.py 95.48% <0%> (-0.1%) ⬇️
pandas/plotting/_converter.py 65.2% <0%> (+1.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2ff1241...6e43b32. Read the comment docs.

@gfyoung
Copy link
Member Author

gfyoung commented Oct 3, 2017

@jreback , @TomAugspurger : All green, so merging.

@gfyoung gfyoung merged commit 81694dc into pandas-dev:master Oct 3, 2017
@gfyoung gfyoung deleted the validate-justify-html branch October 4, 2017 01:52
ghost pushed a commit to reef-technologies/pandas that referenced this pull request Oct 16, 2017
BUG: Validate the justify parameter in to_html

Closes pandas-devgh-17527.
alanbato pushed a commit to alanbato/pandas that referenced this pull request Nov 10, 2017
No-Stream pushed a commit to No-Stream/pandas that referenced this pull request Nov 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO HTML read_html, to_html, Styler.apply, Styler.applymap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants