hipdf.from_dataframe

Contents

hipdf.from_dataframe#

21 min read time

Applies to Linux

hipdf.from_dataframe(df, allow_copy: bool = False) DataFrame#

Build a DataFrame from an object supporting the dataframe interchange protocol.

Note

If you have a pandas.DataFrame, use from_pandas() instead.

Parameters#

dfDataFrameXchg

Object supporting the interchange protocol, i.e. __dataframe__ method.

allow_copybool, default: True

Whether to allow copying the memory to perform the conversion (if false then zero-copy approach is requested).

Returns#

DataFrame