-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
DOC: Revise merging.rst with graphical examples #9899
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
Conversation
@sinhrks looks gr8!
|
@sinhrks Wow, this looks great! |
Wonderful! |
5ed5c50
to
8bdb958
Compare
Adjusted table size and updated rendered output.
Indeed, should not. But using code block prevent images from rendered automatically. Does anyone know the way to hide block but output plot using ipython-directive? Otherwise, my idea is output static images during doc build, and link them from this doc. |
pls add a note in the highlites section of whatsnew 0.16.1 with a pointer to this pages. @sinhrks lgtm merge away |
Thanks for the review. Added release note in highlites. @JanSchulz, @jorisvandenbossche Let me merge this if there is no further suggestions until this weekend. |
@sinhrks I just wanted to finally take a look, but I don't see the image with the output anymore (get some message that the image contains errors). |
@jorisvandenbossche Strange, I can built doc on my local. Can you attach error messages? |
No problem anymore. I meant the image of the built docs you posted here in the PR, but now I see it (don't know what was going wrong yesterday) Do you have any idea where the empty code cells are coming from? As normally, the ipython directive with the
One thing I was thinking. Towards the future, would it be simpler/more flexible to use html instead of matplotlib figure? For that we could use |
@jorisvandenbossche pandas html tables are probably fine in html docs but I wouldn't count on such constructs being able to be converted to PDF (e.g. pandas tables in markdown blow up horrible if converted with pandoc...) That's actually one reason why it would be nice to have a |
I agree with Joris that this would look a little nicer if it leveraged the existing HTML renderer instead of matplotlib. But this is still a nice improvement. |
@jorisvandenbossche Thanks for the comments. Made tables little smaller and updated the rendered output. I still see blank blocks even if I use The reason I used mpl is to layout multiple tables to understand merging operation easier. It gets better if it can be done using html (or rst). |
@sinhrks pls merge when ready |
@jorisvandenbossche OK for this? |
yep, certainly for a first pass! |
DOC: Revise merging.rst with graphical examples
@JanSchulz good point about the pdf output. But rst tables do work in latex output. So in principle we could specify in the sphinx build process that the output for this directive for latex should be different as for html. |
My idea was a bit like this:
But, I don't know if this is actually a better approach (easier, better result, ..) than what @sinhrks now already did |
Closes #9301. Though further table size adjustment / plotter module refactoring is required, I'd like to ask any feedbacks for current output.
I've prepared table plotter under utils.doctools, but is there anywhere more appropriate?
cc @JanSchulz