-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
BUG: to_latex() output broken when the index has a name (GH10660) #11233
BUG: to_latex() output broken when the index has a name (GH10660) #11233
Conversation
@@ -2648,6 +2648,23 @@ def test_to_latex_multiindex(self): | |||
""" | |||
self.assertEqual(result, expected) | |||
|
|||
df = pd.DataFrame({'a':[0,0,1,1], 'b':list('abab'), 'c':[1,2,3,4]}) | |||
df = df.set_index(['a', 'b']) |
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 also provide a test using the groupby in the 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.
done!
looks good. pls squash. |
@@ -2648,6 +2648,49 @@ def test_to_latex_multiindex(self): | |||
""" | |||
self.assertEqual(result, expected) | |||
|
|||
df = pd.DataFrame({'a':[0,0,1,1], 'b':list('abab'), 'c':[1,2,3,4]}) |
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.
add the issue number here as a comment
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.
will do - thanks for the review
72a7368
to
f5efd3b
Compare
…x-bug BUG: to_latex() output broken when the index has a name (GH10660)
thank you sir! |
closes #10660
first try at contributing to pandas. feedbacks will be greatly appreciated.