def to_clipboard(self, excel: bool=True, sep: Optional[str]=None, **kwargs: Any) -> None:
    "\n        Copy object to the system clipboard.\n\n        Write a text representation of object to the system clipboard.\n        This can be pasted into Excel, for example.\n\n        .. note:: This method should only be used if the resulting DataFrame is expected\n            to be small, as all the data is loaded into the driver's memory.\n\n        Parameters\n        ----------\n        excel : bool, default True\n            - True, use the provided separator, writing in a csv format for\n              allowing easy pasting into excel.\n            - False, write a string representation of the object to the\n              clipboard.\n\n        sep : str, default ``'\\t'``\n            Field delimiter.\n        **kwargs\n            These parameters will be passed to DataFrame.to_csv.\n\n        Notes\n        -----\n        Requirements for your platform.\n\n          - Linux : `xclip`, or `xsel` (with `gtk` or `PyQt4` modules)\n          - Windows : none\n          - OS X : none\n\n        See Also\n        --------\n        read_clipboard : Read text from clipboard.\n\n        Examples\n        --------\n        Copy the contents of a DataFrame to the clipboard.\n\n        >>> df = ps.DataFrame([[1, 2, 3], [4, 5, 6]], columns=['A', 'B', 'C'])  # doctest: +SKIP\n        >>> df.to_clipboard(sep=',')  # doctest: +SKIP\n        ... # Wrote the following to the system clipboard:\n        ... # ,A,B,C\n        ... # 0,1,2,3\n        ... # 1,4,5,6\n\n        We can omit the index by passing the keyword `index` and setting\n        it to false.\n\n        >>> df.to_clipboard(sep=',', index=False)  # doctest: +SKIP\n        ... # Wrote the following to the system clipboard:\n        ... # A,B,C\n        ... # 1,2,3\n        ... # 4,5,6\n\n        This function also works for Series:\n\n        >>> df = ps.Series([1, 2, 3, 4, 5, 6, 7], name='x')  # doctest: +SKIP\n        >>> df.to_clipboard(sep=',')  # doctest: +SKIP\n        ... # Wrote the following to the system clipboard:\n        ... # 0, 1\n        ... # 1, 2\n        ... # 2, 3\n        ... # 3, 4\n        ... # 4, 5\n        ... # 5, 6\n        ... # 6, 7\n        "
    args = locals()
    psdf = self
    return validate_arguments_and_invoke_function(psdf._to_internal_pandas(), self.to_clipboard, pd.DataFrame.to_clipboard, args)
Copy object to the system clipboard.

Write a text representation of object to the system clipboard.
This can be pasted into Excel, for example.

.. note:: This method should only be used if the resulting DataFrame is expected
    to be small, as all the data is loaded into the driver's memory.

Parameters
----------
excel : bool, default True
    - True, use the provided separator, writing in a csv format for
      allowing easy pasting into excel.
    - False, write a string representation of the object to the
      clipboard.

sep : str, default ``'\t'``
    Field delimiter.
**kwargs
    These parameters will be passed to DataFrame.to_csv.

Notes
-----
Requirements for your platform.

  - Linux : `xclip`, or `xsel` (with `gtk` or `PyQt4` modules)
  - Windows : none
  - OS X : none

See Also
--------
read_clipboard : Read text from clipboard.

Examples
--------
Copy the contents of a DataFrame to the clipboard.

>>> df = ps.DataFrame([[1, 2, 3], [4, 5, 6]], columns=['A', 'B', 'C'])  # doctest: +SKIP
>>> df.to_clipboard(sep=',')  # doctest: +SKIP
... # Wrote the following to the system clipboard:
... # ,A,B,C
... # 0,1,2,3
... # 1,4,5,6

We can omit the index by passing the keyword `index` and setting
it to false.

>>> df.to_clipboard(sep=',', index=False)  # doctest: +SKIP
... # Wrote the following to the system clipboard:
... # A,B,C
... # 1,2,3
... # 4,5,6

This function also works for Series:

>>> df = ps.Series([1, 2, 3, 4, 5, 6, 7], name='x')  # doctest: +SKIP
>>> df.to_clipboard(sep=',')  # doctest: +SKIP
... # Wrote the following to the system clipboard:
... # 0, 1
... # 1, 2
... # 2, 3
... # 3, 4
... # 4, 5
... # 5, 6
... # 6, 7
def to_clipboard(self, excel: bool=True, sep: Optional[str]=None, **kwargs: Any) -> None:
    "\n        Copy object to the system clipboard.\n\n        Write a text representation of object to the system clipboard.\n        This can be pasted into Excel, for example.\n\n        .. note:: This method should only be used if the resulting DataFrame is expected\n            to be small, as all the data is loaded into the driver's memory.\n\n        Parameters\n        ----------\n        excel : bool, default True\n            - True, use the provided separator, writing in a csv format for\n              allowing easy pasting into excel.\n            - False, write a string representation of the object to the\n              clipboard.\n\n        sep : str, default ``'\\t'``\n            Field delimiter.\n        **kwargs\n            These parameters will be passed to DataFrame.to_csv.\n\n        Notes\n        -----\n        Requirements for your platform.\n\n          - Linux : `xclip`, or `xsel` (with `gtk` or `PyQt4` modules)\n          - Windows : none\n          - OS X : none\n\n        See Also\n        --------\n        read_clipboard : Read text from clipboard.\n\n        Examples\n        --------\n        Copy the contents of a DataFrame to the clipboard.\n\n        >>> df = ps.DataFrame([[1, 2, 3], [4, 5, 6]], columns=['A', 'B', 'C'])  # doctest: +SKIP\n        >>> df.to_clipboard(sep=',')  # doctest: +SKIP\n        ... # Wrote the following to the system clipboard:\n        ... # ,A,B,C\n        ... # 0,1,2,3\n        ... # 1,4,5,6\n\n        We can omit the index by passing the keyword `index` and setting\n        it to false.\n\n        >>> df.to_clipboard(sep=',', index=False)  # doctest: +SKIP\n        ... # Wrote the following to the system clipboard:\n        ... # A,B,C\n        ... # 1,2,3\n        ... # 4,5,6\n\n        This function also works for Series:\n\n        >>> df = ps.Series([1, 2, 3, 4, 5, 6, 7], name='x')  # doctest: +SKIP\n        >>> df.to_clipboard(sep=',')  # doctest: +SKIP\n        ... # Wrote the following to the system clipboard:\n        ... # 0, 1\n        ... # 1, 2\n        ... # 2, 3\n        ... # 3, 4\n        ... # 4, 5\n        ... # 5, 6\n        ... # 6, 7\n        "
    args = locals()
    psdf = self
    return validate_arguments_and_invoke_function(psdf._to_internal_pandas(), self.to_clipboard, pd.DataFrame.to_clipboard, args)