Skip to content

BUG: remove midrule in latex output with header=False #11140

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

Closed
wants to merge 1 commit into from
Closed

BUG: remove midrule in latex output with header=False #11140

wants to merge 1 commit into from

Conversation

loicseguin
Copy link
Contributor

This bug fix addresses issue #7124. If to_latex is called with option header=False, the output should not contain a \midrule which is used to separate the column headers from the data.

@@ -2547,6 +2547,29 @@ def test_to_latex_escape_special_chars(self):
"""
self.assertEqual(observed, expected)

def test_to_latex_no_header(self):
df = DataFrame({'a': [1, 2],
Copy link
Contributor

Choose a reason for hiding this comment

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

add the issue number here

@jreback jreback added Output-Formatting __repr__ of pandas objects, to_string IO LaTeX to_latex labels Oct 5, 2015
@jreback jreback added this to the 0.17.1 milestone Oct 5, 2015
@jreback
Copy link
Contributor

jreback commented Oct 5, 2015

@TomAugspurger ?

@jreback
Copy link
Contributor

jreback commented Oct 5, 2015

pls add a whatsnew note for 0.17.1

@TomAugspurger
Copy link
Contributor

Yeah this looks good (looked at this code in a while though). @loicseguin if you could rebase and add a release note, thanks.

@loicseguin
Copy link
Contributor Author

Done. Let me know if there's anything else I should add.

@jreback
Copy link
Contributor

jreback commented Oct 9, 2015

merged via 924c419

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO LaTeX to_latex Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants