hipdf.from_dataframe#
21 min read time
Applies to Linux
- hipdf.from_dataframe(df, allow_copy: bool = False) DataFrame#
Build a
DataFramefrom an object supporting the dataframe interchange protocol.Note
If you have a
pandas.DataFrame, usefrom_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#