Closed
Description
Is your feature request related to a problem?
When writing papers, it's often useful to be able to copy dataframes into documents as Markdown, HTML or LaTeX.
Describe the solution you'd like
Allow more formats besides excel: bool
in DataFrame.to_clipboard()
. For example, a new keyword as
:
df.to_clipboard(as="html" | "markdown" | "latex" | ...)
API breaking implications
Pure extension unless excel
keyword of to_clipboard()
was removed in favor of as
.
Describe alternatives you've considered
The other option would be allowing the buf
argument of df.to_(html|markdown|latex|...)
to take the string "clipboard"
:
df.to_markdown(buf="clipboard")