pandas.Series.to_clipboard
pandas 3.1.1 · Series and accessors · method
Copy the object's textual table representation to the system clipboard.
Call syntax
Series.to_clipboard(*, excel=True, sep=None, **kwargs)Inspect the call
Run this code to inspect the callable and its parameters. Its data, backend, or environment is needed to execute the operation itself.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
excel |
Optional Keyword only Default True |
bool |
sep |
Optional Keyword only Default None |
str Specify the separator between fields or string pieces. |
**kwargs |
Optional Additional keyword arguments |
Returns
None
Example for a local Python session
import pandas as pd
orders = pd.Series([2, 5], name="units")
orders.to_clipboard(index=False)