pandas.read_clipboard

pandas 3.1.1 · Input and output · function

Parse delimited text from the system clipboard into a DataFrame.

Call syntax

pd.read_clipboard(sep='\\s+', dtype_backend=…, **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

ParameterRequirementAccepted values and behavior
sep Optional
Positional or keyword
Default '\\s+'
str

Specify the separator between fields or string pieces.

dtype_backend Optional
Positional or keyword
{'numpy_nullable', 'pyarrow'}

Choose nullable NumPy-backed dtypes or Arrow-backed dtypes.

**kwargs Optional
Additional keyword arguments

Returns

DataFrame

Example for a local Python session

import pandas as pd
# Copy a tab-delimited table with a header to your clipboard before running.
orders = pd.read_clipboard(sep="	")
print(orders.head())