Skip to content
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: Allow use of longtable package in to_latex. #6617

Closed
wants to merge 3 commits into from

Conversation

jseabold
Copy link
Contributor

No description provided.

@jseabold
Copy link
Contributor Author

What's the difference in the last two Travis builds? How do you escape a backslash in a docstring with all the magic?


`to_latex`-specific options:

bold_rows : boolean, default True
Make the row labels bold in the output
longtable : boolean, default False
Use a longtable environment instead of tabular. Requires adding
a \\usepackage{longtable} to your LaTeX preamble.
Copy link
Contributor

Choose a reason for hiding this comment

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

@jorisvandenbossche I think this is being interpreted as unicode in the doc-string, maybe use a r as a raw string?

Copy link
Member

Choose a reason for hiding this comment

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

You can do one of both (result is the same I think), using r""" of the double backslash. Seems only a problem with python 3

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that's equivalent. I just wasn't sure if the Appender magic decorator was doing this somehow. I didn't realize I had missed the other one.

@jreback jreback added this to the 0.14.0 milestone Mar 12, 2014
@jreback
Copy link
Contributor

jreback commented Mar 12, 2014

pls add a release note (and mention in v0.14.0 if you think its warranted). otherwise ok

@jseabold
Copy link
Contributor Author

Was hoping these were automatically linked now. Added.

@jreback
Copy link
Contributor

jreback commented Mar 12, 2014

I don't like the auto-linking actually. It creates just about the same amount of work as you have to categorize in any event.

@jreback
Copy link
Contributor

jreback commented Mar 12, 2014

merged via 98f51f5

@jreback jreback closed this Mar 12, 2014
@jseabold
Copy link
Contributor Author

It's really not more work, but I've already made my case for why it works with examples of it working elsewhere.

@jreback
Copy link
Contributor

jreback commented Mar 12, 2014

if you want to implement it go for it.

@jseabold
Copy link
Contributor Author

Yes, I probably will end up doing it when I have an afternoon. Here I was trying to alleviate the burden on occasional contributors.

@jreback
Copy link
Contributor

jreback commented Mar 12, 2014

always a plus...

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

Successfully merging this pull request may close these issues.

3 participants