-
Starting to get acquainted with
What I can't seem to figure out is how to do that with a table. I mean, I see that I can use the table directive with a Markdown table, but suppose my table is a rendered Pandas dataframe, such as that created with Pandas.crosstab()? It's a pretty standard workflow when working in JupyterLab to create tables this way, and it would be great if those could be reused in an article just like figures can be. I'm not asking for any special formatting—just the ability to bring the table over without having to recreate it in Markdown. Perhaps I'm missing something obvious here? Thanks very much in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I think you should be able to embed this using the standard embed syntax. So if you have a cell labeled "mytable" that outputs a table, the following two options would embed that table:
|
Beta Was this translation helpful? Give feedback.
-
Thanks very much @choldgraf and @rowanc1! Exactly what I was looking for (just tried and each of the alternatives you provided works like a champ). I really appreciate the timely replies. |
Beta Was this translation helpful? Give feedback.
In addition to that you can wrap it in a
table
directive or a figure directive of kindtable
. Which will give you thesource
and the table caption.Over in jupyter, the cell needs to be labeled with
#| label: pd-table
.