-
Notifications
You must be signed in to change notification settings - Fork 368
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
Markdown display #1167
Comments
+1 for this, or, better yet, a LaTeX tabular. I think I/O functionality either has been or will be moved to another package though, so I'm not sure whether this is still the appropriate place for issues like this. |
|
I wasn't aware the LaTeX output functionality existed, that is very cool indeed! |
It would actually be pretty easy to write a |
I agree that this functionality doesn't need to live in DataFrames. Markdown.jl lives in Base, and therefore it should be slim (right?), but there could be many other functionalities that become relevant for such a package. I'm mainly thinking of use-cases involving pandoc, where you'd parse some data you have in julia (e.g. as a DataFrame) to markdown, and then use pandoc to convert that into whatever you want (LaTeX, HTML, etc). |
It is possible to generate both markdown and LaTeX tables from a DataFrame using Latexify.jl. If you feel that Latexify is not doing a sufficiently good job of this, then feel free to post an issue there (or submit a PR). |
I think this should be a generic functionality for any type that supports Tables.jl API so it is probably outside DataFrames.jl so I am closing this (feel free to reopen if you think we should discuss it more here). |
Given that the code for that should be pretty simple (basically like CSV), it wouldn't be absurd to support that in DataFrames.jl if somebody wants to make a PR. If we want to put this in a separate package, better have a single package taking any table in the Tables.jl sense and supporting a variety of MIME types. Then DataFrames could use it to implement |
@ronisbr - could you please comment here? Maybe we need to update the docstring? Thank you! |
Also here is what I get:
(and maybe this is what is expected?) |
It is doing what it is supposed to. The problem is that the other configurations in DataFrames hide vertical lines. Hence, in this case, you will also need to pass |
Thank you (this is what I assumed, but unfortunately I have not mastered all options of PrettyTables.jl yet) |
No problem! Feel free to ping me in every issue related to PrettyTables. |
It would be useful if
writetable
had an option to save the table as a markdown table (the repl output seems to already be in markdown).The text was updated successfully, but these errors were encountered: