pandas 1.4.2

NotesParameters
to_clipboard(obj, excel: 'bool | None' = True, sep: 'str | None' = None, **kwargs) -> 'None'

Notes

Requirements for your platform

  • Linux: xclip, or xsel (with PyQt4 modules)

  • Windows:

  • OS X:

Parameters

obj : the object to write to the clipboard
excel : bool, 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 :

Attempt to write text representation of object to the system clipboard The clipboard can be then pasted into Excel for example.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/io/clipboards.py#88
type: <class 'function'>
Commit: