On this page
pandas.api.interchange.from_dataframe
- pandas.api.interchange.from_dataframe(df, allow_copy=True)[source]
-
Build a
pd.DataFrame
from any DataFrame supporting the interchange protocol.- Parameters
-
- df:DataFrameXchg
-
Object supporting the interchange protocol, i.e. __dataframe__ method.
- allow_copy:bool, default: True
-
Whether to allow copying the memory to perform the conversion (if false then zero-copy approach is requested).
- Returns
-
- pd.DataFrame
© 2008–2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.5.0/reference/api/pandas.api.interchange.from_dataframe.html