pandas.read_clipboard#
- pandas.read_clipboard(sep='\\s+', use_nullable_dtypes=_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.
- use_nullable_dtypesbool = False
Whether or not to use nullable dtypes as default when reading data. If set to True, nullable dtypes are used for all dtypes that have a nullable implementation, even if no nulls are present.
Note
The nullable dtype implementation can be configured by calling
pd.set_option("mode.dtype_backend", "pandas")
to use numpy-backed nullable dtypes orpd.set_option("mode.dtype_backend", "pyarrow")
to use pyarrow-backed nullable dtypes (usingpd.ArrowDtype
). This is only implemented for thepython
engine.New in version 2.0.
- **kwargs
See read_csv for the full argument list.
- Returns
- DataFrame
A parsed DataFrame object.