pandas.DataFrame.to_clipboard
-
DataFrame.to_clipboard(excel=None, sep=None, **kwargs)
[source] -
Attempt to write text representation of object to the system clipboard This can be pasted into Excel, for example.
Parameters: excel : boolean, defaults to True
if True, use the provided separator, writing in a csv format for allowing easy pasting into excel. if False, write a string representation of the object to the clipboard
sep : optional, defaults to tab
other keywords are passed to to_csv
Notes
- Requirements for your platform
-
- Linux: xclip, or xsel (with gtk or PyQt4 modules)
- Windows: none
- OS X: none
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.22.0/generated/pandas.DataFrame.to_clipboard.html