pandas.api.interchange.from_dataframe

pandas 3.1.1 · General functions · function

Import data from an object that implements the dataframe interchange protocol.

Call syntax

pd.api.interchange.from_dataframe(df, allow_copy=True)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
df Required
Positional or keyword
ArrowStreamExportable or DataFrameXchg
allow_copy Optional
Positional or keyword
Default True
bool

Choose whether a data copy is permitted when constructing a result.

Returns

pd.DataFrame