polars.DataFrame.write_clipboard#

DataFrame.write_clipboard(*, separator: str = '\t', **kwargs: Any) None[source]#

Copy DataFrame in csv format to the system clipboard with write_csv.

Useful for pasting into Excel or other similar spreadsheet software.

Parameters:
separator

Separate CSV fields with this symbol.

kwargs

Additional arguments to pass to write_csv.

See also

polars.read_clipboard

Read a DataFrame from the clipboard.

write_csv

Write to comma-separated values (CSV) file.