pandas.read_clipboard#

pandas.read_clipboard(sep='\\s+', dtype_backend=_NoDefault.no_default, **kwargs)[source]#

Read text from clipboard and pass to read_csv.

Parameters
sepstr, default ‘s+’

A string or regex delimiter. The default of ‘s+’ denotes one or more whitespace characters.

dtype_backend{“numpy_nullable”, “pyarrow”}, defaults to NumPy backed DataFrames

Which dtype_backend to use, e.g. whether a DataFrame should have NumPy arrays, nullable dtypes are used for all dtypes that have a nullable implementation when “numpy_nullable” is set, pyarrow is used for all dtypes if “pyarrow” is set.

The dtype_backends are still experimential.

New in version 2.0.

**kwargs

See read_csv for the full argument list.

Returns
DataFrame

A parsed DataFrame object.